Merge "Move gnocchi's kestone::auth parameters to API profile"
[apex-tripleo-heat-templates.git] / puppet / services / keystone.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Keystone service configured with Puppet
5
6 parameters:
7   KeystoneEnableDBPurge:
8     default: true
9     description: |
10         Whether to create cron job for purging soft deleted rows in Keystone database.
11     type: boolean
12   KeystoneSSLCertificate:
13     default: ''
14     description: Keystone certificate for verifying token validity.
15     type: string
16   KeystoneSSLCertificateKey:
17     default: ''
18     description: Keystone key for signing tokens.
19     type: string
20     hidden: true
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
27     default: 'basic'
28     type: string
29     constraints:
30       - allowed_values: [ 'basic', 'cadf' ]
31   KeystoneRegion:
32     type: string
33     default: 'regionOne'
34     description: Keystone region for endpoint
35   EndpointMap:
36     default: {}
37     description: Mapping of service endpoint -> protocol. Typically set
38                  via parameter_defaults in the resource registry.
39     type: json
40   Debug:
41     type: string
42     default: ''
43   AdminEmail:
44     default: 'admin@example.com'
45     description: The email for the keystone admin account.
46     type: string
47     hidden: true
48   AdminPassword:
49     description: The password for the keystone admin account, used for monitoring, querying neutron etc.
50     type: string
51     hidden: true
52   AdminToken:
53     description: The keystone auth secret and db password.
54     type: string
55     hidden: true
56   RabbitPassword:
57     description: The password for RabbitMQ
58     type: string
59     hidden: true
60   RabbitUserName:
61     default: guest
62     description: The username for RabbitMQ
63     type: string
64   RabbitClientUseSSL:
65     default: false
66     description: >
67         Rabbit client subscriber parameter to specify
68         an SSL connection to the RabbitMQ host.
69     type: string
70   RabbitClientPort:
71     default: 5672
72     description: Set rabbit subscriber port, change this if using SSL
73     type: number
74   KeystoneWorkers:
75     type: string
76     description: Set the number of workers for keystone::wsgi::apache
77     default: '"%{::processorcount}"'
78 outputs:
79   role_data:
80     description: Role data for the Keystone role.
81     value:
82       service_name: keystone
83       config_settings:
84         keystone::database_connection:
85           list_join:
86             - ''
87             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
88               - '://keystone:'
89               - {get_param: AdminToken}
90               - '@'
91               - {get_param: [EndpointMap, MysqlInternal, host]}
92               - '/keystone'
93         keystone::admin_token: {get_param: AdminToken}
94         keystone::roles::admin::password: {get_param: AdminPassword}
95         keystone_ssl_certificate: {get_param: KeystoneSSLCertificate}
96         keystone_ssl_certificate_key: {get_param: KeystoneSSLCertificateKey}
97         keystone::enable_proxy_headers_parsing: true
98         keystone::debug: {get_param: Debug}
99         keystone::db::mysql::password: {get_param: AdminToken}
100         keystone::rabbit_userid: {get_param: RabbitUserName}
101         keystone::rabbit_password: {get_param: RabbitPassword}
102         keystone::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
103         keystone::rabbit_port: {get_param: RabbitClientPort}
104         keystone::notification_driver: {get_param: KeystoneNotificationDriver}
105         keystone::notification_format: {get_param: KeystoneNotificationFormat}
106         keystone::roles::admin::email: {get_param: AdminEmail}
107         keystone::roles::admin::password: {get_param: AdminPassword}
108         keystone::endpoint::public_url: {get_param: [EndpointMap, KeystonePublic, uri_no_suffix]}
109         keystone::endpoint::internal_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
110         keystone::endpoint::admin_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
111         keystone::endpoint::region: {get_param: KeystoneRegion}
112         keystone_enable_db_purge: {get_param: KeystoneEnableDBPurge}
113         keystone::public_endpoint: {get_param: [EndpointMap, KeystonePublic, uri_no_suffix]}
114         keystone::db::mysql::user: keystone
115         keystone::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
116         keystone::db::mysql::dbname: keystone
117         keystone::db::mysql::allowed_hosts:
118           - '%'
119           - "%{hiera('mysql_bind_host')}"
120         keystone::rabbit_heartbeat_timeout_threshold: 60
121         keystone::cron::token_flush::maxdelay: 3600
122         keystone::roles::admin::service_tenant: 'service'
123         keystone::roles::admin::admin_tenant: 'admin'
124         keystone::cron::token_flush::destination: '/dev/null'
125         keystone::config::keystone_config:
126           ec2/driver:
127             value: 'keystone.contrib.ec2.backends.sql.Ec2'
128         keystone::service_name: 'httpd'
129         keystone::wsgi::apache::ssl: false
130
131         keystone::wsgi::apache::workers: {get_param: KeystoneWorkers}
132         # override via extraconfig:
133         keystone::wsgi::apache::threads: 1
134         keystone::db::database_db_max_retries: -1
135         keystone::db::database_max_retries: -1
136         tripleo.keystone.firewall_rules:
137           '111 keystone':
138             dport:
139               - 5000
140               - 13000
141               - 35357
142               - 13357
143       step_config: |
144         include ::tripleo::profile::base::keystone