CentOS 6
Sponsored Link

OpenStack Grizzly - Keystone 設定#12013/08/13

 
OpenStack Identity Service (Keystone) をインストールします。
[1] Keystone インストール
# EPEL OpenStack, EPELからインストール

[root@dlp ~]#
yum --enablerepo=epel-openstack-grizzly,epel -y install openstack-keystone openstack-utils
[2] Keystone の基本設定
# データベース設定 (「password」は任意のパスワードを設定)

[root@dlp ~]#
openstack-db --init --service keystone --password password

Please enter the password for the 'root' MySQL user:  
# MySQL root パスワード

Verified connectivity to MySQL.
Creating 'keystone' database.
Updating 'keystone' database password in /etc/keystone/keystone.conf
Initializing the keystone database, please wait...
Complete!
[root@dlp ~]#
vi /etc/keystone/keystone.conf
# 4行目:コメント解除して適当な文字列に変更

admin_token =
admintoken
# 7行目:コメント解除

bind_host = 0.0.0.0
# 10行目:コメント解除

public_port = 5000
# 13行目:コメント解除

admin_port = 35357
# 21行目:コメント解除

compute_port = 8774
# 136行目:コメント解除

token_format = PKI
[root@dlp ~]#
keystone-manage pki_setup

Generating RSA private key, 1024 bit long modulus
....++++++
................................++++++
e is 65537 (0x10001)
Generating RSA private key, 1024 bit long modulus
...++++++
............++++++
e is 65537 (0x10001)
Using configuration from /etc/keystone/ssl/certs/openssl.conf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName           :PRINTABLE:'US'
stateOrProvinceName   :PRINTABLE:'Unset'
localityName          :PRINTABLE:'Unset'
organizationName      :PRINTABLE:'Unset'
commonName            :PRINTABLE:'www.example.com'
Certificate is to be certified until Aug 12 13:38:34 2014 GMT (365 days)

Write out database with 1 new entries
Data Base Updated
[root@dlp ~]#
chown -R keystone /etc/keystone/ssl

[root@dlp ~]#
/etc/rc.d/init.d/openstack-keystone start

Starting keystone: [ OK ]
[root@dlp ~]#
chkconfig openstack-keystone on

関連コンテンツ