Merge "Combine parameter_default fields"
[apex-tripleo-heat-templates.git] / puppet / services / glance-registry.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Glance Registry service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   Debug:
13     default: ''
14     description: Set to True to enable debugging on all services.
15     type: string
16   GlancePassword:
17     description: The password for the glance service and db account, used by the glance services.
18     type: string
19     hidden: true
20   GlanceWorkers:
21     default: 0
22     description: Number of workers for Glance service.
23     type: number
24
25 outputs:
26   role_data:
27     description: Role data for the Glance Registry role.
28     value:
29       config_settings:
30         glance::registry::database_connection:
31           list_join:
32             - ''
33             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
34               - '://glance:'
35               - {get_param: GlancePassword}
36               - '@'
37               - {get_param: [EndpointMap, MysqlInternal, host]}
38               - '/glance'
39         glance::registry::keystone_password: {get_param: GlancePassword}
40         glance::registry::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
41         glance::registry::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
42         glance::registry::debug: {get_param: Debug}
43         glance::registry::workers: {get_param: GlanceWorkers}
44         glance::db::mysql::user: glance
45         glance::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host]}
46         glance::db::mysql::dbname: glance
47         glance::db::mysql::allowed_hosts:
48           - '%'
49           - "%{hiera('mysql_bind_host')}"
50
51       step_config: |
52         include ::tripleo::profile::base::glance::registry