Files
js-openstack-lib/vagrant.sh
Michael Krotscheck 7a64d24795 Added Glance Service
This glance service follows the same pattern as the keystone service,
and provides both version negotiation and endpoint discovery. Unlike
the keystone service, however, it is configured using an endpoint
configuration object as discovered from the Keystone service catalog.

Change-Id: I0fe2bc9690022688e2cb80b9ca1b10bcea86c13d
2016-09-01 14:38:37 -07:00

58 lines
1.2 KiB
Bash

#!/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
EOL
# Start devstack.
su - stack /devstack/unstack.sh
su - stack /devstack/stack.sh