Pass ServiceNetMap to services
[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   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   Debug:
19     default: ''
20     description: Set to True to enable debugging on all services.
21     type: string
22   GlancePassword:
23     description: The password for the glance service and db account, used by the glance services.
24     type: string
25     hidden: true
26   GlanceWorkers:
27     default: 0
28     description: Number of workers for Glance service.
29     type: number
30
31 outputs:
32   role_data:
33     description: Role data for the Glance Registry role.
34     value:
35       service_name: glance_registry
36       config_settings:
37         glance::registry::database_connection:
38           list_join:
39             - ''
40             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
41               - '://glance:'
42               - {get_param: GlancePassword}
43               - '@'
44               - {get_param: [EndpointMap, MysqlInternal, host]}
45               - '/glance'
46         glance::registry::keystone_password: {get_param: GlancePassword}
47         glance::registry::keystone_tenant: 'service'
48         glance::registry::pipeline: 'keystone'
49         glance::registry::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
50         glance::registry::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
51         glance::registry::debug: {get_param: Debug}
52         glance::registry::workers: {get_param: GlanceWorkers}
53         glance::db::mysql::user: glance
54         glance::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
55         glance::db::mysql::dbname: glance
56         glance::db::mysql::allowed_hosts:
57           - '%'
58           - "%{hiera('mysql_bind_host')}"
59         glance::registry::db::database_db_max_retries: -1
60         glance::registry::db::database_max_retries: -1
61
62         tripleo.glance_registry.firewall_rules:
63           '112 glance_registry':
64             dport:
65               - 9191
66       step_config: |
67         include ::tripleo::profile::base::glance::registry