You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.4 KiB

#!/usr/bin/env bash
apt-get update
apt-get dist-upgrade -y
apt-get install -y git
mkdir -p /devstack
cd /devstack
# Clone if we have to, else just pull.
if [ ! -d .git ]
then
git clone https://git.openstack.org/openstack-dev/devstack /devstack
else
git pull
fi
# Make sure the user exists
/devstack/tools/create-stack-user.sh
chown -R stack:stack /devstack
# Create some default passwords
cat >/devstack/.localrc.password <<EOL
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
ADMIN_PASSWORD=password
EOL
# Add some other settings.
cat >/devstack/local.conf <<EOL
[[local|localrc]]
HOST_IP=192.168.99.99
SERVICE_HOST=192.168.99.99
RECLONE=True
#CINDER_BRANCH=milestone-proposed
#GLANCE_BRANCH=milestone-proposed
#HORIZON_BRANCH=milestone-proposed
#KEYSTONE_BRANCH=milestone-proposed
#KEYSTONECLIENT_BRANCH=milestone-proposed
#NOVA_BRANCH=milestone-proposed
#NOVACLIENT_BRANCH=milestone-proposed
#NEUTRON_BRANCH=milestone-proposed
#SWIFT_BRANCH=milestone-proposed
[[post-config|\$KEYSTONE_CONF]]
[cors]
allowed_origin=http://localhost:9876
[[post-config|\$GLANCE_API_CONF]]
[cors]
allowed_origin=http://localhost:9876
[[post-config|\$NEUTRON_CONF]]
[cors]
allowed_origin=http://localhost:9876
[[post-config|\$NOVA_CONF]]
[cors]
allowed_origin=http://localhost:9876
EOL
# Start devstack.
su - stack /devstack/unstack.sh
su - stack /devstack/stack.sh