Last active
August 29, 2015 13:57
-
-
Save nacx/9545547 to your computer and use it in GitHub Desktop.
Script to provision a DevStack instance
This file contains hidden or 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
| # Clone DevStack | |
| apt-get -y update | |
| apt-get -y install git | |
| git clone https://github.com/openstack-dev/devstack.git -b stable/havana /opt/devstack | |
| # Create the configuration file | |
| cat >/opt/devstack/localrc <<EOF | |
| # Credentials | |
| ADMIN_PASSWORD=devstack | |
| MYSQL_PASSWORD=devstack | |
| RABBIT_PASSWORD=devstack | |
| SERVICE_PASSWORD=devstack | |
| SERVICE_TOKEN=token | |
| # Services | |
| disable_service n-net | |
| enable_service q-svc | |
| enable_service q-agt | |
| enable_service q-dhcp | |
| enable_service q-meta | |
| enable_service quantum | |
| enable_service q-lbaas | |
| enable_service q-l3 | |
| enable_service swift | |
| # Branches | |
| NOVA_BRANCH=stable/havana | |
| CINDER_BRANCH=stable/havana | |
| GLANCE_BRANCH=stable/havana | |
| HORIZON_BRANCH=stable/havana | |
| KEYSTONE_BRANCH=stable/havana | |
| NEUTRON_BRANCH=stable/havana | |
| SWIFT_BRANCH=stable/havana | |
| # Output | |
| LOGFILE=/opt/stack/logs/stack.sh.log | |
| VERBOSE=True | |
| LOG_COLOR=False | |
| SCREEN_LOGDIR=/opt/stack/logs | |
| # Neutron Stuff | |
| OVS_VLAN_RANGES=RegionOne:1:4000 | |
| OVS_ENABLE_TUNNELING=False | |
| # Swift stuff | |
| SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5 | |
| SWIFT_REPLICAS=1 | |
| EOF | |
| # Create the stack user | |
| /opt/devstack/tools/create-stack-user.sh | |
| chown -R stack:stack /opt/devstack | |
| cd /opt/devstack | |
| su stack -c ./stack.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment