ca10fd120c94347f783d7ee3a5a5ad079b127d19
[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       service_name: glance_registry
30       config_settings:
31         glance::registry::database_connection:
32           list_join:
33             - ''
34             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
35               - '://glance:'
36               - {get_param: GlancePassword}
37               - '@'
38               - {get_param: [EndpointMap, MysqlInternal, host]}
39               - '/glance'
40         glance::registry::keystone_password: {get_param: GlancePassword}
41         glance::registry::keystone_tenant: 'service'
42         glance::registry::pipeline: 'keystone'
43         glance::registry::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
44         glance::registry::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
45         glance::registry::debug: {get_param: Debug}
46         glance::registry::workers: {get_param: GlanceWorkers}
47         glance::db::mysql::user: glance
48         glance::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
49         glance::db::mysql::dbname: glance
50         glance::db::mysql::allowed_hosts:
51           - '%'
52           - "%{hiera('mysql_bind_host')}"
53         glance::registry::db::database_db_max_retries: -1
54         glance::registry::db::database_max_retries: -1
55
56         tripleo.glance_registry.firewall_rules:
57           '112 glance_registry':
58             dport:
59               - 9191
60       step_config: |
61         include ::tripleo::profile::base::glance::registry