master
Brie Bruns 4 years ago
parent ecf55edf52
commit 18e943cb15
  1. 2
      network/legacy-eni
  2. 4
      virt-install-cloud.sh

@ -1,2 +1,2 @@
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
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

Loading…
Cancel
Save