0cefb380a347bfe3b16124a95d63802e7111da82
[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::glance::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
41             tripleo::profile::base::cinder::cinder_enable_db_purge: {get_param: CinderEnableDBPurge}
42             tripleo.cinder_api.firewall_rules:
43               '119 cinder':
44                 dport:
45                   - 8776
46                   - 13776
47       step_config: |
48         include ::tripleo::profile::base::cinder::api