CentOS 6
Sponsored Link

OpenStack Icehouse : Keystone 設定#1
2014/06/23
 
OpenStack Identity Service (Keystone) をインストールします。
[1] Keystone インストール
# RDO, EPEL からインストール

[root@dlp ~]#
yum --enablerepo=openstack-icehouse,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:  
# MariaDB 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
# 13行目:コメント解除して適当な文字列に変更

admin_token=
admintoken
# 1189行目:コメント解除して追記

token_format=
PKI
# 1191行目から:コメント解除して地域情報等を変更

certfile=/etc/keystone/ssl/certs/signing_cert.pem
keyfile=/etc/keystone/ssl/private/signing_key.pem
ca_certs=/etc/keystone/ssl/certs/ca.pem
ca_key=/etc/keystone/ssl/private/cakey.pem
key_size=2048
valid_days=3650
cert_subject=
/C=JP/ST=Hiroshima/L=Hiroshima/O=Server_World/CN=dlp.srv.world
[root@dlp ~]#
keystone-manage pki_setup --keystone-user keystone --keystone-group keystone

Generating RSA private key, 2048 bit long modulus
....+++
......................................................................+++
e is 65537 (0x10001)
Generating RSA private key, 2048 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:'JP'
stateOrProvinceName   :ASN.1 12:'Hiroshima'
localityName          :ASN.1 12:'Hiroshima'
organizationName      :ASN.1 12:'Server_World'
commonName            :ASN.1 12:'dlp.srv.world'
Certificate is to be certified until May  2 16:36:10 2024 GMT (3650 days)

Write out database with 1 new entries
Data Base Updated

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

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

 
Tweet