more userdata
This commit is contained in:
parent
7306f3bfc7
commit
63cb9239aa
1 changed files with 8 additions and 0 deletions
|
@ -166,6 +166,14 @@ instance-type: m1.large
|
||||||
local-hostname: $GUEST_NAME.local
|
local-hostname: $GUEST_NAME.local
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# set metadata
|
||||||
|
cat > $vm_dir/uec/user-data<<EOF
|
||||||
|
#cloud-config
|
||||||
|
apt_update: true
|
||||||
|
apt_upgrade: true
|
||||||
|
packages: [ vim-nox, git-core ]
|
||||||
|
EOF
|
||||||
|
|
||||||
# (re)start a metadata service
|
# (re)start a metadata service
|
||||||
(
|
(
|
||||||
pid=`lsof -iTCP@192.168.$GUEST_NETWORK.1:4567 -n | awk '{print $2}' | tail -1`
|
pid=`lsof -iTCP@192.168.$GUEST_NETWORK.1:4567 -n | awk '{print $2}' | tail -1`
|
||||||
|
|
Loading…
Reference in a new issue