Merge "Add ExtraConfig example that always runs on update"
[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   MysqlVirtualIPUri:
13     type: string
14     default: ''
15   Debug:
16     default: ''
17     description: Set to True to enable debugging on all services.
18     type: string
19   GlancePassword:
20     description: The password for the glance service and db account, used by the glance services.
21     type: string
22     hidden: true
23   GlanceWorkers:
24     default: 0
25     description: Number of workers for Glance service.
26     type: number
27
28 outputs:
29   role_data:
30     description: Role data for the Glance Registry role.
31     value:
32       config_settings:
33         glance_dsn: &glance_dsn
34           list_join:
35             - ''
36             - - 'mysql+pymysql://glance:'
37               - {get_param: GlancePassword}
38               - '@'
39               - {get_param: MysqlVirtualIPUri}
40               - '/glance'
41         glance::registry::keystone_password: {get_param: GlancePassword}
42         glance::registry::database_connection: *glance_dsn
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       step_config: |
48         include ::tripleo::profile::base::glance::registry