1 heat_template_version: pike
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
116 KeystoneCronTokenFlushEnsure:
119 Cron to purge expired tokens - Ensure
121 KeystoneCronTokenFlushMinute:
122 type: comma_delimited_list
124 Cron to purge expired tokens - Minute
126 KeystoneCronTokenFlushHour:
127 type: comma_delimited_list
129 Cron to purge expired tokens - Hour
131 KeystoneCronTokenFlushMonthday:
132 type: comma_delimited_list
134 Cron to purge expired tokens - Month Day
136 KeystoneCronTokenFlushMonth:
137 type: comma_delimited_list
139 Cron to purge expired tokens - Month
141 KeystoneCronTokenFlushWeekday:
142 type: comma_delimited_list
144 Cron to purge expired tokens - Week Day
146 KeystoneCronTokenFlushMaxDelay:
149 Cron to purge expired tokens - Max Delay
151 KeystoneCronTokenFlushDestination:
154 Cron to purge expired tokens - Log destination
155 default: '/var/log/keystone/keystone-tokenflush.log'
156 KeystoneCronTokenFlushUser:
159 Cron to purge expired tokens - User
163 A hash of policies to configure for Keystone.
164 e.g. { keystone-context_is_admin: { key: context_is_admin, value: 'role:admin' } }
167 KeystoneLDAPDomainEnable:
168 description: Trigger to call ldap_backend puppet keystone define.
171 KeystoneLDAPBackendConfigs:
172 description: Hash containing the configurations for the LDAP backends
173 configured in keystone.
183 ServiceNetMap: {get_param: ServiceNetMap}
184 DefaultPasswords: {get_param: DefaultPasswords}
185 EndpointMap: {get_param: EndpointMap}
186 EnableInternalTLS: {get_param: EnableInternalTLS}
189 keystone_fernet_tokens: {equals: [{get_param: KeystoneTokenProvider}, "fernet"]}
190 keystone_ldap_domain_enabled: {equals: [{get_param: KeystoneLDAPDomainEnable}, True]}
194 description: Role data for the Keystone role.
196 service_name: keystone
197 monitoring_subscription: {get_param: MonitoringSubscriptionKeystone}
198 logging_source: {get_param: KeystoneLoggingSource}
203 - get_attr: [ApacheServiceBase, role_data, config_settings]
204 - keystone::database_connection:
206 scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
208 password: {get_param: AdminToken}
209 host: {get_param: [EndpointMap, MysqlInternal, host]}
212 read_default_file: /etc/my.cnf.d/tripleo.cnf
213 read_default_group: tripleo
214 keystone::admin_token: {get_param: AdminToken}
215 keystone::admin_password: {get_param: AdminPassword}
216 keystone::roles::admin::password: {get_param: AdminPassword}
217 keystone::policy::policies: {get_param: KeystonePolicies}
218 keystone_ssl_certificate: {get_param: KeystoneSSLCertificate}
219 keystone_ssl_certificate_key: {get_param: KeystoneSSLCertificateKey}
220 keystone::token_provider: {get_param: KeystoneTokenProvider}
221 keystone::enable_fernet_setup: {if: [keystone_fernet_tokens, true, false]}
222 keystone::enable_proxy_headers_parsing: true
223 keystone::enable_credential_setup: true
224 keystone::credential_keys:
225 '/etc/keystone/credential-keys/0':
226 content: {get_param: KeystoneCredential0}
227 '/etc/keystone/credential-keys/1':
228 content: {get_param: KeystoneCredential1}
229 keystone::fernet_keys:
230 '/etc/keystone/fernet-keys/0':
231 content: {get_param: KeystoneFernetKey0}
232 '/etc/keystone/fernet-keys/1':
233 content: {get_param: KeystoneFernetKey1}
234 keystone::fernet_replace_keys: false
235 keystone::debug: {get_param: Debug}
236 keystone::rabbit_userid: {get_param: RabbitUserName}
237 keystone::rabbit_password: {get_param: RabbitPassword}
238 keystone::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
239 keystone::rabbit_port: {get_param: RabbitClientPort}
240 keystone::notification_driver: {get_param: KeystoneNotificationDriver}
241 keystone::notification_format: {get_param: KeystoneNotificationFormat}
242 keystone::roles::admin::email: {get_param: AdminEmail}
243 keystone::roles::admin::password: {get_param: AdminPassword}
244 keystone::endpoint::public_url: {get_param: [EndpointMap, KeystonePublic, uri_no_suffix]}
245 keystone::endpoint::internal_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
246 keystone::endpoint::admin_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
247 keystone::endpoint::region: {get_param: KeystoneRegion}
248 keystone::endpoint::version: ''
249 keystone_enable_db_purge: {get_param: KeystoneEnableDBPurge}
250 keystone::rabbit_heartbeat_timeout_threshold: 60
251 keystone::cron::token_flush::maxdelay: 3600
252 keystone::roles::admin::service_tenant: 'service'
253 keystone::roles::admin::admin_tenant: 'admin'
254 keystone::cron::token_flush::destination: '/var/log/keystone/keystone-tokenflush.log'
255 keystone::config::keystone_config:
257 value: 'keystone.contrib.ec2.backends.sql.Ec2'
258 keystone::service_name: 'httpd'
259 keystone::enable_ssl: {get_param: EnableInternalTLS}
260 keystone::wsgi::apache::ssl: {get_param: EnableInternalTLS}
261 keystone::wsgi::apache::servername:
264 "%{hiera('fqdn_$NETWORK')}"
266 $NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
267 keystone::wsgi::apache::servername_admin:
270 "%{hiera('fqdn_$NETWORK')}"
272 $NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
273 keystone::wsgi::apache::workers: {get_param: KeystoneWorkers}
274 # override via extraconfig:
275 keystone::wsgi::apache::threads: 1
276 keystone::db::database_db_max_retries: -1
277 keystone::db::database_max_retries: -1
278 tripleo.keystone.firewall_rules:
285 keystone::admin_bind_host:
288 "%{hiera('fqdn_$NETWORK')}"
290 $NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
291 keystone::public_bind_host:
294 "%{hiera('fqdn_$NETWORK')}"
296 $NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
297 # NOTE: bind IP is found in Heat replacing the network name with the
298 # local node IP for the given network; replacement examples
299 # (eg. for internal_api):
301 # internal_api_uri -> [IP]
302 # internal_api_subnet - > IP/CIDR
303 # NOTE: this applies to all 2 bind IP settings below...
304 keystone::wsgi::apache::bind_host: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
305 keystone::wsgi::apache::admin_bind_host: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
306 keystone::cron::token_flush::ensure: {get_param: KeystoneCronTokenFlushEnsure}
307 keystone::cron::token_flush::minute: {get_param: KeystoneCronTokenFlushMinute}
308 keystone::cron::token_flush::hour: {get_param: KeystoneCronTokenFlushHour}
309 keystone::cron::token_flush::monthday: {get_param: KeystoneCronTokenFlushMonthday}
310 keystone::cron::token_flush::month: {get_param: KeystoneCronTokenFlushMonth}
311 keystone::cron::token_flush::weekday: {get_param: KeystoneCronTokenFlushWeekday}
312 keystone::cron::token_flush::maxdelay: {get_param: KeystoneCronTokenFlushMaxDelay}
313 keystone::cron::token_flush::destination: {get_param: KeystoneCronTokenFlushDestination}
314 keystone::cron::token_flush::user: {get_param: KeystoneCronTokenFlushUser}
317 - keystone_ldap_domain_enabled
319 tripleo::profile::base::keystone::ldap_backend_enable: True
320 keystone::using_domain_config: True
321 tripleo::profile::base::keystone::ldap_backends_config:
322 get_param: KeystoneLDAPBackendConfigs
326 include ::tripleo::profile::base::keystone
327 service_config_settings:
329 keystone::db::mysql::password: {get_param: AdminToken}
330 keystone::db::mysql::user: keystone
331 keystone::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
332 keystone::db::mysql::dbname: keystone
333 keystone::db::mysql::allowed_hosts:
335 - "%{hiera('mysql_bind_host')}"
338 - keystone_ldap_domain_enabled
340 horizon::keystone_multidomain_support: true
341 horizon::keystone_default_domain: 'Default'
344 get_attr: [ApacheServiceBase, role_data, metadata_settings]
347 expression: $.data.apache_upgrade + $.data.keystone_upgrade
350 get_attr: [ApacheServiceBase, role_data, upgrade_tasks]
352 - name: Stop keystone service (running under httpd)
354 service: name=httpd state=stopped