Fixing resources path in OpenDaylight
[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: ''
31     description: |
32       Number of worker processes for glance registry. If left unset (empty
33       string), the default value will result in the configuration being left
34       unset and a system-dependent default value will be chosen (e.g.: number of
35       processors). Please note that this will create a large number of processes
36       on systems with a large number of CPUs resulting in excess memory
37       consumption. It is recommended that a suitable non-default value be
38       selected on such systems.
39     type: string
40   MonitoringSubscriptionGlanceRegistry:
41     default: 'overcloud-glance-registry'
42     type: string
43   GlanceRegistryLoggingSource:
44     type: json
45     default:
46       tag: openstack.glance.registry
47       path: /var/log/glance/registry.log
48
49 outputs:
50   role_data:
51     description: Role data for the Glance Registry role.
52     value:
53       service_name: glance_registry
54       monitoring_subscription: {get_param: MonitoringSubscriptionGlanceRegistry}
55       logging_source: {get_param: GlanceRegistryLoggingSource}
56       logging_groups:
57         - glance
58       config_settings:
59         glance::registry::database_connection:
60           list_join:
61             - ''
62             - - {get_param: [EndpointMap, MysqlInternal, protocol]}
63               - '://glance:'
64               - {get_param: GlancePassword}
65               - '@'
66               - {get_param: [EndpointMap, MysqlInternal, host]}
67               - '/glance'
68         glance::registry::authtoken::password: {get_param: GlancePassword}
69         glance::registry::authtoken::project_name: 'service'
70         glance::registry::pipeline: 'keystone'
71         glance::registry::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
72         glance::registry::authtoken::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
73         glance::registry::debug: {get_param: Debug}
74         glance::registry::workers: {get_param: GlanceWorkers}
75         glance::db::mysql::user: glance
76         glance::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
77         glance::db::mysql::dbname: glance
78         glance::db::mysql::allowed_hosts:
79           - '%'
80           - "%{hiera('mysql_bind_host')}"
81         glance::registry::db::database_db_max_retries: -1
82         glance::registry::db::database_max_retries: -1
83         tripleo.glance_registry.firewall_rules:
84           '112 glance_registry':
85             dport:
86               - 9191
87         # NOTE: bind IP is found in Heat replacing the network name with the
88         # local node IP for the given network; replacement examples
89         # (eg. for internal_api):
90         # internal_api -> IP
91         # internal_api_uri -> [IP]
92         # internal_api_subnet - > IP/CIDR
93         glance::registry::bind_host: {get_param: [ServiceNetMap, GlanceRegistryNetwork]}
94       step_config: |
95         include ::tripleo::profile::base::glance::registry