Fix base service type inheriting ceilometer service pcmk templates
[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   ServiceNetMap:
17     default: {}
18     description: Mapping of service_name -> network name. Typically set
19                  via parameter_defaults in the resource registry.  This
20                  mapping overrides those in ServiceNetMapDefaults.
21     type: json
22   DefaultPasswords:
23     default: {}
24     type: json
25   EndpointMap:
26     default: {}
27     description: Mapping of service endpoint -> protocol. Typically set
28                  via parameter_defaults in the resource registry.
29     type: json
30   KeystoneRegion:
31     type: string
32     default: 'regionOne'
33     description: Keystone region for endpoint
34
35 resources:
36
37   CinderBase:
38     type: ./cinder-base.yaml
39     properties:
40       ServiceNetMap: {get_param: ServiceNetMap}
41       DefaultPasswords: {get_param: DefaultPasswords}
42       EndpointMap: {get_param: EndpointMap}
43
44 outputs:
45   role_data:
46     description: Role data for the Cinder API role.
47     value:
48       service_name: cinder_api
49       config_settings:
50         map_merge:
51           - get_attr: [CinderBase, role_data, config_settings]
52           - cinder::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
53             cinder::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
54             cinder::keystone::authtoken::password: {get_param: CinderPassword}
55             cinder::keystone::authtoken::project_name: 'service'
56             cinder::keystone::auth::tenant: 'service'
57             cinder::keystone::auth::public_url: {get_param: [EndpointMap, CinderPublic, uri]}
58             cinder::keystone::auth::internal_url: {get_param: [EndpointMap, CinderInternal, uri]}
59             cinder::keystone::auth::admin_url: {get_param: [EndpointMap, CinderAdmin, uri]}
60             cinder::keystone::auth::public_url_v2: {get_param: [EndpointMap, CinderV2Public, uri]}
61             cinder::keystone::auth::internal_url_v2: {get_param: [EndpointMap, CinderV2Internal, uri]}
62             cinder::keystone::auth::admin_url_v2: {get_param: [EndpointMap, CinderV2Admin, uri]}
63             cinder::keystone::auth::public_url_v3: {get_param: [EndpointMap, CinderV3Public, uri]}
64             cinder::keystone::auth::internal_url_v3: {get_param: [EndpointMap, CinderV3Internal, uri]}
65             cinder::keystone::auth::admin_url_v3: {get_param: [EndpointMap, CinderV3Admin, uri]}
66             cinder::keystone::auth::password: {get_param: CinderPassword}
67             cinder::keystone::auth::region: {get_param: KeystoneRegion}
68             cinder::api::enable_proxy_headers_parsing: true
69             cinder::api::nova_catalog_info: 'compute:Compute Service:internalURL'
70             # TODO(emilien) move it to puppet-cinder
71             cinder::config:
72               DEFAULT/swift_catalog_info:
73                 value: 'object-store:swift:internalURL'
74             cinder::glance::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}
75             tripleo::profile::base::cinder::cinder_enable_db_purge: {get_param: CinderEnableDBPurge}
76             tripleo.cinder_api.firewall_rules:
77               '119 cinder':
78                 dport:
79                   - 8776
80                   - 13776
81             # NOTE: bind IP is found in Heat replacing the network name with the local node IP
82             # for the given network; replacement examples (eg. for internal_api):
83             # internal_api -> IP
84             # internal_api_uri -> [IP]
85             # internal_api_subnet - > IP/CIDR
86             cinder::api::bind_host: {get_param: [ServiceNetMap, CinderApiNetwork]}
87       step_config: |
88         include ::tripleo::profile::base::cinder::api