Merge "Set VNC URL parameters for nova-compute"
[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   MonitoringSubscriptionGlanceRegistry:
34     default: 'overcloud-glance-registry'
35     type: string
36   GlanceRegistryLoggingSource:
37     type: json
38     default:
39       tag: openstack.glance.registry
40       path: /var/log/glance/registry.log
41
42 outputs:
43   role_data:
44     description: Role data for the Glance Registry role.
45     value:
46       service_name: glance_registry
47       monitoring_subscription: {get_param: MonitoringSubscriptionGlanceRegistry}
48       logging_source: {get_param: GlanceRegistryLoggingSource}
49       logging_groups:
50         - glance
51       config_settings:
52         glance::registry::database_connection:
53           list_join:
54             - ''
55             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
56               - '://glance:'
57               - {get_param: GlancePassword}
58               - '@'
59               - {get_param: [EndpointMap, MysqlInternal, host]}
60               - '/glance'
61         glance::registry::authtoken::password: {get_param: GlancePassword}
62         glance::registry::authtoken::project_name: 'service'
63         glance::registry::pipeline: 'keystone'
64         glance::registry::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
65         glance::registry::authtoken::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
66         glance::registry::debug: {get_param: Debug}
67         glance::registry::workers: {get_param: GlanceWorkers}
68         glance::db::mysql::user: glance
69         glance::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
70         glance::db::mysql::dbname: glance
71         glance::db::mysql::allowed_hosts:
72           - '%'
73           - "%{hiera('mysql_bind_host')}"
74         glance::registry::db::database_db_max_retries: -1
75         glance::registry::db::database_max_retries: -1
76         tripleo.glance_registry.firewall_rules:
77           '112 glance_registry':
78             dport:
79               - 9191
80         # NOTE: bind IP is found in Heat replacing the network name with the
81         # local node IP for the given network; replacement examples
82         # (eg. for internal_api):
83         # internal_api -> IP
84         # internal_api_uri -> [IP]
85         # internal_api_subnet - > IP/CIDR
86         glance::registry::bind_host: {get_param: [ServiceNetMap, GlanceRegistryNetwork]}
87       step_config: |
88         include ::tripleo::profile::base::glance::registry