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]}
151 keystone::admin_token: {get_param: AdminToken}
152 keystone::admin_password: {get_param: AdminPassword}
153 keystone::roles::admin::password: {get_param: AdminPassword}
154 keystone_ssl_certificate: {get_param: KeystoneSSLCertificate}
155 keystone_ssl_certificate_key: {get_param: KeystoneSSLCertificateKey}
156 keystone::token_provider: {get_param: KeystoneTokenProvider}
157 keystone::enable_fernet_setup: {if: [keystone_fernet_tokens, true, false]}
158 keystone::enable_proxy_headers_parsing: true
159 keystone::enable_credential_setup: true
160 keystone::credential_keys:
161 '/etc/keystone/credential-keys/0':
162 content: {get_param: KeystoneCredential0}
163 '/etc/keystone/credential-keys/1':
164 content: {get_param: KeystoneCredential1}
165 keystone::fernet_keys:
166 '/etc/keystone/fernet-keys/0':
167 content: {get_param: KeystoneFernetKey0}
168 '/etc/keystone/fernet-keys/1':
169 content: {get_param: KeystoneFernetKey1}
170 keystone::debug: {get_param: Debug}
171 keystone::rabbit_userid: {get_param: RabbitUserName}
172 keystone::rabbit_password: {get_param: RabbitPassword}
173 keystone::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
174 keystone::rabbit_port: {get_param: RabbitClientPort}
175 keystone::notification_driver: {get_param: KeystoneNotificationDriver}
176 keystone::notification_format: {get_param: KeystoneNotificationFormat}
177 keystone::roles::admin::email: {get_param: AdminEmail}
178 keystone::roles::admin::password: {get_param: AdminPassword}
179 keystone::endpoint::public_url: {get_param: [EndpointMap, KeystonePublic, uri_no_suffix]}
180 keystone::endpoint::internal_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
181 keystone::endpoint::admin_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
182 keystone::endpoint::region: {get_param: KeystoneRegion}
183 keystone_enable_db_purge: {get_param: KeystoneEnableDBPurge}
184 keystone::rabbit_heartbeat_timeout_threshold: 60
185 keystone::cron::token_flush::maxdelay: 3600
186 keystone::roles::admin::service_tenant: 'service'
187 keystone::roles::admin::admin_tenant: 'admin'
188 keystone::cron::token_flush::destination: '/dev/null'
189 keystone::config::keystone_config:
191 value: 'keystone.contrib.ec2.backends.sql.Ec2'
192 keystone::service_name: 'httpd'
193 keystone::enable_ssl: {get_param: EnableInternalTLS}
194 keystone::wsgi::apache::ssl: {get_param: EnableInternalTLS}
195 keystone::wsgi::apache::servername:
200 $NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
201 keystone::wsgi::apache::servername_admin:
206 $NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
207 keystone::wsgi::apache::workers: {get_param: KeystoneWorkers}
208 # override via extraconfig:
209 keystone::wsgi::apache::threads: 1
210 keystone::db::database_db_max_retries: -1
211 keystone::db::database_max_retries: -1
212 tripleo.keystone.firewall_rules:
219 keystone::admin_bind_host:
224 $NETWORK: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
225 keystone::public_bind_host:
230 $NETWORK: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
231 # NOTE: bind IP is found in Heat replacing the network name with the
232 # local node IP for the given network; replacement examples
233 # (eg. for internal_api):
235 # internal_api_uri -> [IP]
236 # internal_api_subnet - > IP/CIDR
237 # NOTE: this applies to all 2 bind IP settings below...
238 keystone::wsgi::apache::bind_host: {get_param: [ServiceNetMap, KeystonePublicApiNetwork]}
239 keystone::wsgi::apache::admin_bind_host: {get_param: [ServiceNetMap, KeystoneAdminApiNetwork]}
241 include ::tripleo::profile::base::keystone
242 service_config_settings:
244 keystone::db::mysql::password: {get_param: AdminToken}
245 keystone::db::mysql::user: keystone
246 keystone::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
247 keystone::db::mysql::dbname: keystone
248 keystone::db::mysql::allowed_hosts:
250 - "%{hiera('mysql_bind_host')}"