1 heat_template_version: 2016-10-14
4 OpenStack Keystone service configured with Puppet
10 Whether to create cron job for purging soft deleted rows in Keystone database.
12 KeystoneSSLCertificate:
14 description: Keystone certificate for verifying token validity.
16 KeystoneSSLCertificateKey:
18 description: Keystone key for signing tokens.
21 KeystoneNotificationDriver:
22 description: Comma-separated list of Oslo notification drivers used by Keystone
23 default: ['messaging']
24 type: comma_delimited_list
25 KeystoneNotificationFormat:
26 description: The Keystone notification format
30 - allowed_values: [ 'basic', 'cadf' ]
34 description: Keystone region for endpoint
35 KeystoneTokenProvider:
36 description: The keystone token format
40 - allowed_values: ['uuid', 'fernet']
43 description: Mapping of service_name -> network name. Typically set
44 via parameter_defaults in the resource registry. This
45 mapping overrides those in ServiceNetMapDefaults.
52 description: Mapping of service endpoint -> protocol. Typically set
53 via parameter_defaults in the resource registry.
59 default: 'admin@example.com'
60 description: The email for the keystone admin account.
64 description: The password for the keystone admin account, used for monitoring, querying neutron etc.
68 description: The keystone auth secret and db password.
72 description: The password for RabbitMQ
77 description: The username for RabbitMQ
82 Rabbit client subscriber parameter to specify
83 an SSL connection to the RabbitMQ host.
87 description: Set rabbit subscriber port, change this if using SSL
91 description: Set the number of workers for keystone::wsgi::apache
92 default: '%{::os_workers}'
93 MonitoringSubscriptionKeystone:
94 default: 'overcloud-keystone'
98 description: The first Keystone credential key. Must be a valid key.
101 description: The second Keystone credential key. Must be a valid key.
104 description: The first Keystone fernet key. Must be a valid key.
107 description: The second Keystone fernet key. Must be a valid key.
108 KeystoneLoggingSource:
111 tag: openstack.keystone
112 path: /var/log/keystone/keystone.log
122 ServiceNetMap: {get_param: ServiceNetMap}
123 DefaultPasswords: {get_param: DefaultPasswords}
124 EndpointMap: {get_param: EndpointMap}
125 EnableInternalTLS: {get_param: EnableInternalTLS}
128 keystone_fernet_tokens: {equals: [{get_param: KeystoneTokenProvider}, "fernet"]}
132 description: Role data for the Keystone role.
134 service_name: keystone
135 monitoring_subscription: {get_param: MonitoringSubscriptionKeystone}
136 logging_source: {get_param: KeystoneLoggingSource}
141 - get_attr: [ApacheServiceBase, role_data, config_settings]
142 - keystone::database_connection:
145 - - {get_param: [EndpointMap, MysqlInternal, protocol]}
147 - {get_param: AdminToken}
149 - {get_param: [EndpointMap, MysqlInternal, host]}
152 - "%{hiera('tripleo::profile::base::database::mysql::client_bind_address')}"
153 keystone::admin_token: {get_param: AdminToken}
154 keystone::admin_password: {get_param: AdminPassword}
155 keystone::roles::admin::password: {get_param: AdminPassword}
156 keystone_ssl_certificate: {get_param: KeystoneSSLCertificate}
157 keystone_ssl_certificate_key: {get_param: KeystoneSSLCertificateKey}
158 keystone::token_provider: {get_param: KeystoneTokenProvider}
159 keystone::enable_fernet_setup: {if: [keystone_fernet_tokens, true, false]}
160 keystone::enable_proxy_headers_parsing: true
161 keystone::enable_credential_setup: true
162 keystone::credential_keys:
163 '/etc/keystone/credential-keys/0':
164 content: {get_param: KeystoneCredential0}
165 '/etc/keystone/credential-keys/1':
166 content: {get_param: KeystoneCredential1}
167 keystone::fernet_keys:
168 '/etc/keystone/fernet-keys/0':
169 content: {get_param: KeystoneFernetKey0}
170 '/etc/keystone/fernet-keys/1':
171 content: {get_param: KeystoneFernetKey1}
172 keystone::debug: {get_param: Debug}
173 keystone::rabbit_userid: {get_param: RabbitUserName}
174 keystone::rabbit_password: {get_param: RabbitPassword}
175 keystone::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
176 keystone::rabbit_port: {get_param: RabbitClientPort}
177 keystone::notification_driver: {get_param: KeystoneNotificationDriver}
178 keystone::notification_format: {get_param: KeystoneNotificationFormat}
179 keystone::roles::admin::email: {get_param: AdminEmail}
180 keystone::roles::admin::password: {get_param: AdminPassword}
181 keystone::endpoint::public_url: {get_param: [EndpointMap, KeystonePublic, uri_no_suffix]}
182 keystone::endpoint::internal_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
183 keystone::endpoint::admin_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
184 keystone::endpoint::region: {get_param: KeystoneRegion}
185 keystone_enable_db_purge: {get_param: KeystoneEnableDBPurge}
186 keystone::rabbit_heartbeat_timeout_threshold: 60
187 keystone::cron::token_flush::maxdelay: 3600
188 keystone::roles::admin::service_tenant: 'service'
189 keystone::roles::admin::admin_tenant: 'admin'
190 keystone::cron::token_flush::destination: '/dev/null'
191 keystone::config::keystone_config:
193 value: 'keystone.contrib.ec2.backends.sql.Ec2'
194 keystone::service_name: 'httpd'
195 keystone::enable_ssl: {get_param: EnableInternalTLS}
196 keystone::wsgi::apache::ssl: {get_param: EnableInternalTLS}
197 keystone::wsgi::apache::servername:
200 "%{hiera('fqdn_$NETWORK')}"
202 $NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
203 keystone::wsgi::apache::servername_admin:
206 "%{hiera('fqdn_$NETWORK')}"
208 $NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
209 keystone::wsgi::apache::workers: {get_param: KeystoneWorkers}
210 # override via extraconfig:
211 keystone::wsgi::apache::threads: 1
212 keystone::db::database_db_max_retries: -1
213 keystone::db::database_max_retries: -1
214 tripleo.keystone.firewall_rules:
221 keystone::admin_bind_host:
224 "%{hiera('fqdn_$NETWORK')}"
226 $NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
227 keystone::public_bind_host:
230 "%{hiera('fqdn_$NETWORK')}"
232 $NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
233 # NOTE: bind IP is found in Heat replacing the network name with the
234 # local node IP for the given network; replacement examples
235 # (eg. for internal_api):
237 # internal_api_uri -> [IP]
238 # internal_api_subnet - > IP/CIDR
239 # NOTE: this applies to all 2 bind IP settings below...
240 keystone::wsgi::apache::bind_host: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
241 keystone::wsgi::apache::admin_bind_host: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
243 include ::tripleo::profile::base::keystone
244 service_config_settings:
246 keystone::db::mysql::password: {get_param: AdminToken}
247 keystone::db::mysql::user: keystone
248 keystone::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
249 keystone::db::mysql::dbname: keystone
250 keystone::db::mysql::allowed_hosts:
252 - "%{hiera('mysql_bind_host')}"
253 # Ansible tasks to handle upgrade
255 - name: Stop keystone service (running under httpd)
257 service: name=httpd state=stopped
258 - name: Sync keystone DB
260 command: keystone-manage db_sync
261 - name: Start keystone service (running under httpd)
263 service: name=httpd state=started