run hostname on remote server

This commit is contained in:
Jesse Andrews 2011-11-06 09:35:13 -08:00
parent b17c4f30eb
commit 6e3a4c56a5

View file

@ -171,7 +171,7 @@ EOF
cat > $vm_dir/uec/user-data<<EOF cat > $vm_dir/uec/user-data<<EOF
#!/bin/bash #!/bin/bash
# hostname needs to resolve for rabbit # hostname needs to resolve for rabbit
sed -i "s/127.0.0.1/127.0.0.1 `hostname`/" /etc/hosts 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