OpenStack Juno : Keystone 設定#12015/01/03 |
OpenStack Identity Service (Keystone) をインストールします。
|
|
[1] | Keystone をインストールします。 |
[root@dlp ~]# yum -y install openstack-keystone openstack-utils
|
[2] | Keystone 用のユーザーとデータベースを MariaDB に登録しておきます。 |
[root@dlp ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 19 Server version: 10.0.13-MariaDB-wsrep MariaDB Server, wsrep_25.10.r4123 Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
create database keystone; Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on keystone.* to keystone@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on keystone.* to keystone@'%' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) exit Bye |
[3] | Keystone の基本設定です。 |
[root@dlp ~]#
vi /etc/keystone/keystone.conf # 13行目:コメント解除して適当な文字列に変更 admin_token= admintoken
# 633行目:コメント解除して変更 ( MariaDB に登録したもの ) connection= mysql://keystone:password@localhost/keystone
# 1434行目:コメント解除して追記 token_format= PKI
# 1440行目から:コメント解除して地域情報等を変更 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
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 Jan 2 11:53:41 2025 GMT (3650 days) Write out database with 1 new entries Data Base Updated[root@dlp ~]# keystone-manage db_sync [root@dlp ~]# systemctl start openstack-keystone [root@dlp ~]# systemctl enable openstack-keystone |
Sponsored Link |
|