another attempt at userdata

This commit is contained in:
Jesse Andrews 2011-11-05 23:36:29 -07:00
parent 2d40c26850
commit 446a3304bc

View file

@ -168,15 +168,18 @@ EOF
# set metadata # set metadata
cat > $vm_dir/uec/user-data<<EOF cat > $vm_dir/uec/user-data<<EOF
#cloud-config #!/bin/bash
apt_update: true apt-get update
apt_upgrade: true apt-get install git -y
packages: [ vim-nox, git-core ] git clone https://github.com/cloudbuilders/devstack.git
password: pass cd devstack
chpasswd: { expire: False } echo DASH_BRANCH=instance-overview > localrc
disable_root: false echo ADMIN_PASSWORD=golfing >> localrc
runcmd: echo MYSQL_PASSWORD=golfing >> localrc
- [ git, clone, https://github.com/cloudbuilders/devstack.git ] echo RABBIT_PASSWORD=golfing >> localrc
echo SERVICE_TOKEN=123124123124 >> localrc
echo FLAT_INTERFACE=br100 >> localrc
./stack.sh
EOF EOF
# (re)start a metadata service # (re)start a metadata service