Merge "Add tripleo-packages composable service"
[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   GnocchiBackend:
17     default: file
18     description: The short name of the Gnocchi backend to use. Should be one
19       of swift, rbd, or file
20     type: string
21     constraints:
22     - allowed_values: ['swift', 'file', 'rbd']
23   KeystoneRegion:
24     type: string
25     default: 'regionOne'
26     description: Keystone region for endpoint
27
28 resources:
29   GnocchiServiceBase:
30     type: ./gnocchi-base.yaml
31     properties:
32       EndpointMap: {get_param: EndpointMap}
33
34 outputs:
35   role_data:
36     description: Role data for the Gnocchi role.
37     value:
38       service_name: gnocchi_api
39       config_settings:
40         map_merge:
41           - get_attr: [GnocchiServiceBase, role_data, config_settings]
42           - tripleo.gnocchi_api.firewall_rules:
43               '129 gnocchi-api':
44                 dport:
45                   - 8041
46                   - 13041
47             gnocchi::api::enabled: true
48             gnocchi::api::manage_service: false
49             gnocchi::api::service_name: 'httpd'
50             gnocchi::keystone::auth::admin_url: { get_param: [ EndpointMap, GnocchiAdmin, uri ] }
51             gnocchi::keystone::auth::internal_url: {get_param: [EndpointMap, GnocchiInternal, uri]}
52             gnocchi::keystone::auth::password: {get_param: GnocchiPassword}
53             gnocchi::keystone::auth::public_url: { get_param: [ EndpointMap, GnocchiPublic, uri ] }
54             gnocchi::keystone::auth::region: {get_param: KeystoneRegion}
55             gnocchi::keystone::auth::tenant: 'service'
56             gnocchi::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
57             gnocchi::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
58             gnocchi::keystone::authtoken::password: {get_param: GnocchiPassword}
59             gnocchi::keystone::authtoken::project_name: 'service'
60             gnocchi::wsgi::apache::ssl: false
61             tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
62       step_config: |
63         include ::tripleo::profile::base::gnocchi::api