2012-12-11 21:44:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# install keystone
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
2013-01-28 05:41:54 +00:00
|
|
|
install-packages \
|
2012-12-11 21:44:14 +00:00
|
|
|
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
|
|
|
|
|