Update keystone element to use os-refresh-config.
Change-Id: I15595d80ee7fad04d964aaa83a403d9303f6aa55
This commit is contained in:
parent
8346115bf9
commit
abbd8a61a8
1
elements/keystone-config/element-deps
Normal file
1
elements/keystone-config/element-deps
Normal file
@ -0,0 +1 @@
|
|||||||
|
os-config-applier
|
@ -1,16 +1,45 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
admin_token = funkytonwn
|
admin_token = {{admin-token}}
|
||||||
|
|
||||||
|
debug = True
|
||||||
|
|
||||||
[sql]
|
[sql]
|
||||||
connection = mysql://{{OpenStack::Keystone::Database.User}}:{{OpenStack::Keystone::Database.Password}}@{{OpenStack::Keystone::Database.Host}}/{{OpenStack::Keystone::Database.Database}}
|
connection = {{keystone.db}}
|
||||||
|
|
||||||
[identity]
|
[identity]
|
||||||
|
driver = keystone.identity.backends.sql.Identity
|
||||||
|
|
||||||
[catalog]
|
[catalog]
|
||||||
|
driver = keystone.catalog.backends.sql.Catalog
|
||||||
|
|
||||||
[token]
|
[token]
|
||||||
|
driver = keystone.token.backends.kvs.Token
|
||||||
|
|
||||||
|
# Amount of time a token should remain valid (in seconds)
|
||||||
|
# expiration = 86400
|
||||||
|
|
||||||
[policy]
|
[policy]
|
||||||
|
# driver = keystone.policy.backends.sql.Policy
|
||||||
|
|
||||||
[ec2]
|
[ec2]
|
||||||
|
# driver = keystone.contrib.ec2.backends.kvs.Ec2
|
||||||
|
|
||||||
[ssl]
|
[ssl]
|
||||||
|
#enable = True
|
||||||
|
#certfile = /etc/keystone/ssl/certs/keystone.pem
|
||||||
|
#keyfile = /etc/keystone/ssl/private/keystonekey.pem
|
||||||
|
#ca_certs = /etc/keystone/ssl/certs/ca.pem
|
||||||
|
#cert_required = True
|
||||||
|
|
||||||
[signing]
|
[signing]
|
||||||
|
#token_format = PKI
|
||||||
|
#certfile = /etc/keystone/ssl/certs/signing_cert.pem
|
||||||
|
#keyfile = /etc/keystone/ssl/private/signing_key.pem
|
||||||
|
#ca_certs = /etc/keystone/ssl/certs/ca.pem
|
||||||
|
#key_size = 1024
|
||||||
|
#valid_days = 3650
|
||||||
|
#ca_password = None
|
||||||
|
|
||||||
[ldap]
|
[ldap]
|
||||||
|
|
||||||
[filter:debug]
|
[filter:debug]
|
@ -5,11 +5,11 @@ keys=root
|
|||||||
keys=normal,normal_with_name,debug
|
keys=normal,normal_with_name,debug
|
||||||
|
|
||||||
[handlers]
|
[handlers]
|
||||||
keys=production,file,devel
|
keys=production,devel
|
||||||
|
|
||||||
[logger_root]
|
[logger_root]
|
||||||
level=WARNING
|
level=WARNING
|
||||||
handlers=file
|
handlers=
|
||||||
|
|
||||||
[handler_production]
|
[handler_production]
|
||||||
class=handlers.SysLogHandler
|
class=handlers.SysLogHandler
|
||||||
@ -17,12 +17,6 @@ level=ERROR
|
|||||||
formatter=normal_with_name
|
formatter=normal_with_name
|
||||||
args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
|
args=(('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER)
|
||||||
|
|
||||||
[handler_file]
|
|
||||||
class=FileHandler
|
|
||||||
level=DEBUG
|
|
||||||
formatter=normal_with_name
|
|
||||||
args=('keystone.log', 'a')
|
|
||||||
|
|
||||||
[handler_devel]
|
[handler_devel]
|
||||||
class=StreamHandler
|
class=StreamHandler
|
||||||
level=NOTSET
|
level=NOTSET
|
@ -1,2 +1,3 @@
|
|||||||
|
keystone-config
|
||||||
|
os-refresh-config
|
||||||
os-svc-install
|
os-svc-install
|
||||||
os-config-applier
|
|
||||||
|
9
elements/keystone/install.d/70-keystone
Executable file
9
elements/keystone/install.d/70-keystone
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eux
|
||||||
|
|
||||||
|
os-svc-install -n keystone -u keystone -r https://github.com/openstack/keystone.git
|
||||||
|
os-svc-daemon keystone keystone /usr/local/bin/keystone-all "--config-dir /etc/keystone --log-config /etc/keystone/logging.conf"
|
||||||
|
install -m 0755 -o keystone -g keystone -d /etc/keystone/ssl
|
||||||
|
|
||||||
|
install -m 0755 -o root -g root $(dirname $0)/../post-configure \
|
||||||
|
$(os-refresh-config --print-base)/post-configure.d/70-keystone
|
3
elements/keystone/post-configure
Executable file
3
elements/keystone/post-configure
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eu
|
||||||
|
service keystone restart
|
Loading…
Reference in New Issue
Block a user