这个文档主要描述了如何安装keystone以便使用它。如果你想在keystone做二次开发,你应该阅读Developing with keystone(http://docs.openstack.org/developer/keystone/developing.html) 和 Setting up
a keystone development enviroment(http://docs.openstack.org/developer/keystone/setup.html)
Installing from Source(源码安装)
源码安装可以避免不同的环境平台,假设你已经有python,pip,git等工具。
git clone http://github.com/openstack/keystone.git
cd keystone
安装依赖:
sudo pip install -r requirements.txt
这样之后,keystone,keystone-manage,keystone-all命令就可以使用了。
keystone:keystone的client,可以用来配置keystone
keystone-manage:keystone数据的引导程序
keystone-all:运行keystone的services
你会发现配置文件在etc/
keystone.conf
keystone-paste.ini
logging.conf
policy.json
default_catalog.templates
至此,你再根据Configuring Keystone(http://docs.openstack.org/developer/keystone/configuration.html)来keystone的后端驱动,一旦你配置好,
你应该能够运行keystone使用命令:
keystone-all
默认会现在终端显示keystone日志信息,一旦启动,你可以利用openstack来初始化keystone的数据,对于openstack如何和keystone配合使用,
请参考Configuring Services to work with KeyStone(http://docs.openstack.org/developer/keystone/configuringservices.html)
Installing from packages: Ubuntu(在系统ubuntu下安装)
sudo apt-get install keystone
ubuntu下如此安装keystone,默认keystone backends是基于SQL,保存在本地的sqlite。
一旦安装好,你依然需要对keystone初始化数据,这个操作可参见Configuring Services to work with KeyStone。