no message
parent
ecf55edf52
commit
18e943cb15
|
@ -1,2 +1,2 @@
|
||||||
network-interfaces: |
|
network-interfaces: |
|
||||||
allow-hotplug eth0
|
allow-hotplug eth0
|
||||||
|
|
|
@ -123,9 +123,9 @@ sed -e "s/%FQDN%/${hostname}.${domain}/" ${WORKING_DIR}/user-data > ${WORKING_DI
|
||||||
if [[ ${virt_netinfo_type} == "eni" ]]; then
|
if [[ ${virt_netinfo_type} == "eni" ]]; then
|
||||||
cat ${WORKING_DIR}/network/legacy-eni >> ${WORKING_DIR}/output/meta-data
|
cat ${WORKING_DIR}/network/legacy-eni >> ${WORKING_DIR}/output/meta-data
|
||||||
if [[ ${virt_netinfo_address} == "dhcp" ]]; then
|
if [[ ${virt_netinfo_address} == "dhcp" ]]; then
|
||||||
echo " iface eth0 inet dhcp" >> ${WORKING_DIR}/output/meta-data
|
echo -e "\n iface eth0 inet dhcp" >> ${WORKING_DIR}/output/meta-data
|
||||||
else
|
else
|
||||||
echo " iface eth0 inet static" >> ${WORKING_DIR}/output/meta-data
|
echo -e "\n iface eth0 inet static" >> ${WORKING_DIR}/output/meta-data
|
||||||
echo " address ${virt_netinfo_address}" >> ${WORKING_DIR}/output/meta-data
|
echo " address ${virt_netinfo_address}" >> ${WORKING_DIR}/output/meta-data
|
||||||
echo " netmask ${virt_netinfo_netmask}" >> ${WORKING_DIR}/output/meta-data
|
echo " netmask ${virt_netinfo_netmask}" >> ${WORKING_DIR}/output/meta-data
|
||||||
echo " gateway ${virt_netinfo_gateway}" >> ${WORKING_DIR}/output/meta-data
|
echo " gateway ${virt_netinfo_gateway}" >> ${WORKING_DIR}/output/meta-data
|
||||||
|
|
Loading…
Reference in New Issue