no message

master
Brie Bruns 2018-05-13 20:32:13 -06:00
parent ecf55edf52
commit 18e943cb15
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
network-interfaces: |
allow-hotplug eth0
allow-hotplug eth0

View File

@ -123,9 +123,9 @@ sed -e "s/%FQDN%/${hostname}.${domain}/" ${WORKING_DIR}/user-data > ${WORKING_DI
if [[ ${virt_netinfo_type} == "eni" ]]; then
cat ${WORKING_DIR}/network/legacy-eni >> ${WORKING_DIR}/output/meta-data
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
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 " netmask ${virt_netinfo_netmask}" >> ${WORKING_DIR}/output/meta-data
echo " gateway ${virt_netinfo_gateway}" >> ${WORKING_DIR}/output/meta-data