no message
parent
d6fb2ddc44
commit
00ae2761f5
|
@ -121,14 +121,14 @@ sed -e "s/%GUEST_NAME%/${hostname}/" ${WORKING_DIR}/meta-data > ${WORKING_DIR}/o
|
|||
sed -e "s/%FQDN%/${hostname}.${domain}/" ${WORKING_DIR}/user-data > ${WORKING_DIR}/output/user-data
|
||||
|
||||
if [[ ${virt_netinfo_type} == "eni" ]]; then
|
||||
cat ${WORK_DIR}/network/legacy-eni >> ${WORK_DIR}/output/meta-data
|
||||
cat ${WORKING_DIR}/network/legacy-eni >> ${WORKING_DIR}/output/meta-data
|
||||
if [[ ${virt_netinfo_address} == "dhcp" ]]; then
|
||||
echo " iface eth0 inet dhcp" >> ${WORK_DIR}/output/meta-data
|
||||
echo " iface eth0 inet dhcp" >> ${WORKING_DIR}/output/meta-data
|
||||
else
|
||||
echo " iface eth0 inet static" >> ${WORK_DIR}/output/meta-data
|
||||
echo " address ${virt_netinfo_address}" >> ${WORK_DIR}/output/meta-data
|
||||
echo " netmask ${virt_netinfo_netmask}" >> ${WORK_DIR}/output/meta-data
|
||||
echo " gateway ${virt_netinfo_gateway}" >> ${WORK_DIR}/output/meta-data
|
||||
echo " 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
|
||||
fi
|
||||
elif [[ $virt_netinfo_type == "1" ]]; then
|
||||
echo "Not implemented yet!"
|
||||
|
|
Loading…
Reference in New Issue