master
Brie Bruns 4 years ago
parent 13ed539b6e
commit e15f9c23e3
  1. 2
      meta-data
  2. 2
      user-data
  3. 4
      virt-install-cloud.sh

@ -1,5 +1,5 @@
instance-id: iid-%GUEST_NAME%;
hostname: %GUEST_NAME%
local-hostname: %GUEST_NAME%
manage_resolv_conf: false
manage_resolv_conf: true

@ -25,3 +25,5 @@ packages:
runcmd:
- [ touch, /etc/cloud/cloud-init.disabled ]
bootcmd:
- [ mv, -f, /etc/network/interfaces.d/50-cloud-init.cfg, /etc/network/interfaces ]

@ -37,7 +37,7 @@ usage() {
echo -e "\t-c number of vcpus"
echo -e "\t-b bridge to attach to *"
echo -e "\t-x network info"
echo -e "\t (type:ip:netmask:gateway - type=eni/1, ip=dhcp or address, default eni dhcp)"
echo -e "\t (type:ip:netmask:gateway - type=eni/1, ip=dhcp or address, default 1:dhcp)"
echo -e "\t-i distribution to use"
echo -e "\t (see script for supported options) - default is stretch"
echo -e "\t-o OS type and variant (default: generic:generic - also set by distro option when available)"
@ -85,7 +85,7 @@ if [[ -z $cpucount ]]; then
fi
if [[ -z $netinfo ]]; then
netinfo="eni:dhcp"
netinfo="1:dhcp"
fi
if [[ ! -z $netinfo ]]; then

Loading…
Cancel
Save