Merge "Remove deprecated hdp plugin and add ambari"
[apex-tripleo-heat-templates.git] / puppet / services / gnocchi-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Gnocchi service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   GnocchiPassword:
13     description: The password for the gnocchi service and db account.
14     type: string
15     hidden: true
16   KeystoneRegion:
17     type: string
18     default: 'regionOne'
19     description: Keystone region for endpoint
20
21 resources:
22   GnocchiServiceBase:
23     type: ./gnocchi-base.yaml
24     properties:
25       EndpointMap: {get_param: EndpointMap}
26
27 outputs:
28   role_data:
29     description: Role data for the Gnocchi role.
30     value:
31       service_name: gnocchi_api
32       config_settings:
33         map_merge:
34           - get_attr: [GnocchiServiceBase, role_data, config_settings]
35           - tripleo.gnocchi_api.firewall_rules:
36               '129 gnocchi-api':
37                 dport:
38                   - 8041
39                   - 13041
40             gnocchi::api::keystone_tenant: 'service'
41             gnocchi::keystone::auth::tenant: 'service'
42             gnocchi::keystone::auth::region: {get_param: KeystoneRegion}
43             gnocchi::keystone::auth::password: {get_param: GnocchiPassword}
44             gnocchi::keystone::auth::public_url: { get_param: [ EndpointMap, GnocchiPublic, uri ] }
45             gnocchi::keystone::auth::internal_url: {get_param: [EndpointMap, GnocchiInternal, uri]}
46             gnocchi::keystone::auth::admin_url: { get_param: [ EndpointMap, GnocchiAdmin, uri ] }
47       step_config: |
48         include ::tripleo::profile::base::gnocchi::api