Created
April 23, 2014 17:43
-
-
Save signed8bit/11225629 to your computer and use it in GitHub Desktop.
Vagrant provision script for devstack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dependencies | |
apt-get update | |
apt-get install -y git | |
# Obtain and configure DevStack | |
cd /home/vagrant/ && git clone https://github.com/openstack-dev/devstack.git | |
cat > /home/vagrant/devstack/local.conf << 'EOF' | |
[[local|localrc]] | |
FLOATING_RANGE=192.168.1.224/27 | |
FIXED_RANGE=10.11.12.0/24 | |
FIXED_NETWORK_SIZE=256 | |
FLAT_INTERFACE=eth0 | |
ADMIN_PASSWORD=devstack | |
DATABASE_PASSWORD=$ADMIN_PASSWORD | |
RABBIT_PASSWORD=$ADMIN_PASSWORD | |
SERVICE_PASSWORD=$ADMIN_PASSWORD | |
SERVICE_TOKEN=a682f596-76f3-11e3-b3b2-e716f9080d50 | |
OS_TENANT_NAME=demo | |
OS_USERNAME=demo | |
OS_PASSWORD=$ADMIN_PASSWORD | |
EOF | |
# Cleanup any ownership issues | |
chown -R vagrant:vagrant /home/vagrant | |
# Run stack.sh as the vagrant user | |
su vagrant -c " cd ~/devstack && ./stack.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment