make sure hostname resolves

This commit is contained in:
Jesse Andrews 2011-11-06 09:25:55 -08:00
parent d55a515912
commit b17c4f30eb

View file

@ -170,6 +170,8 @@ EOF
# set metadata # set metadata
cat > $vm_dir/uec/user-data<<EOF cat > $vm_dir/uec/user-data<<EOF
#!/bin/bash #!/bin/bash
# hostname needs to resolve for rabbit
sed -i "s/127.0.0.1/127.0.0.1 `hostname`/" /etc/hosts
apt-get update apt-get update
apt-get install git sudo -y apt-get install git sudo -y
git clone https://github.com/cloudbuilders/devstack.git git clone https://github.com/cloudbuilders/devstack.git