Add keystone element.

Change-Id: I478227c7a6b806e2aaa52f28ba6c6408d55e9ebc
This commit is contained in:
Tim Miller 2012-12-11 13:44:14 -08:00
parent a675503716
commit e47bb57131
4 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,4 @@
This element installs the Keystone service from git.
Upon booting the image, the service should be running on port 5000.

View file

@ -0,0 +1,7 @@
#!/bin/bash
set -e
set -o xtrace
# upstart script
cp -f $(dirname $0)/etc_init_keystone.conf /etc/init/keystone.conf

View file

@ -0,0 +1,9 @@
description "OpenStack Keystone service"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [016]
respawn
exec su -s /bin/sh -c "exec /opt/stack/keystone/bin/keystone-all"

View file

@ -0,0 +1,32 @@
#!/bin/sh
# install keystone
set -e
set -o xtrace
DEBIAN_FRONTEND=noninteractive apt-get -y install \
python-pip git-core python-setuptools python-dev python-lxml python-netaddr \
python-pastescript python-pastedeploy python-paste python-sqlalchemy \
python-greenlet python-routes python-simplejson python-webob
OS_ROOT=/opt/stack
mkdir -p $OS_ROOT
# clone source
KEYSTONE_ROOT=$OS_ROOT/keystone
git clone https://github.com/openstack/keystone.git $KEYSTONE_ROOT
cd $KEYSTONE_ROOT
git checkout master
# pip dependencies
python setup.py egg_info
pip install -r keystone.egg-info/requires.txt
cd -
# config
mkdir -p /etc/keystone
cp $KEYSTONE_ROOT/etc/keystone.conf.sample /etc/keystone/keystone.conf
cp $KEYSTONE_ROOT/etc/policy.json /etc/keystone
cp $KEYSTONE_ROOT/etc/logging.conf.sample /etc/keystone/logging.conf