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