Migrate Puppet Hieradata to composable services
[apex-tripleo-heat-templates.git] / puppet / services / cinder-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Cinder API service configured with Puppet
5
6 parameters:
7   CinderEnableDBPurge:
8     default: true
9     description: |
10       Whether to create cron job for purging soft deleted rows in Cinder database.
11     type: boolean
12   CinderPassword:
13     description: The password for the cinder service account, used by cinder-api.
14     type: string
15     hidden: true
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
22 resources:
23
24   CinderBase:
25     type: ./cinder-base.yaml
26     properties:
27       EndpointMap: {get_param: EndpointMap}
28
29 outputs:
30   role_data:
31     description: Role data for the Cinder API role.
32     value:
33       service_name: cinder-api
34       config_settings:
35         map_merge:
36           - get_attr: [CinderBase, role_data, config_settings]
37           - cinder::api::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
38             cinder::api::identity_uri: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
39             cinder::api::keystone_password: {get_param: CinderPassword}
40             cinder::api::keystone_tenant: 'service'
41             cinder::api::enable_proxy_headers_parsing: true
42             cinder::api::nova_catalog_info: 'compute:Compute Service:internalURL'
43             # TODO(emilien) move it to puppet-cinder
44             cinder::config:
45               DEFAULT/swift_catalog_info:
46                 value: 'object-store:swift:internalURL'
47             cinder::glance::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
48             tripleo::profile::base::cinder::cinder_enable_db_purge: {get_param: CinderEnableDBPurge}
49             tripleo.cinder_api.firewall_rules:
50               '119 cinder':
51                 dport:
52                   - 8776
53                   - 13776
54       step_config: |
55         include ::tripleo::profile::base::cinder::api