Add DefaultPasswords to composable services
[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   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
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   GnocchiPassword:
22     description: The password for the gnocchi service and db account.
23     type: string
24     hidden: true
25   GnocchiBackend:
26     default: file
27     description: The short name of the Gnocchi backend to use. Should be one
28       of swift, rbd, or file
29     type: string
30     constraints:
31     - allowed_values: ['swift', 'file', 'rbd']
32   KeystoneRegion:
33     type: string
34     default: 'regionOne'
35     description: Keystone region for endpoint
36
37 resources:
38   GnocchiServiceBase:
39     type: ./gnocchi-base.yaml
40     properties:
41       ServiceNetMap: {get_param: ServiceNetMap}
42       DefaultPasswords: {get_param: DefaultPasswords}
43       EndpointMap: {get_param: EndpointMap}
44
45 outputs:
46   role_data:
47     description: Role data for the Gnocchi role.
48     value:
49       service_name: gnocchi_api
50       config_settings:
51         map_merge:
52           - get_attr: [GnocchiServiceBase, role_data, config_settings]
53           - tripleo.gnocchi_api.firewall_rules:
54               '129 gnocchi-api':
55                 dport:
56                   - 8041
57                   - 13041
58             gnocchi::api::enabled: true
59             gnocchi::api::manage_service: false
60             gnocchi::api::service_name: 'httpd'
61             gnocchi::keystone::auth::admin_url: { get_param: [ EndpointMap, GnocchiAdmin, uri ] }
62             gnocchi::keystone::auth::internal_url: {get_param: [EndpointMap, GnocchiInternal, uri]}
63             gnocchi::keystone::auth::password: {get_param: GnocchiPassword}
64             gnocchi::keystone::auth::public_url: { get_param: [ EndpointMap, GnocchiPublic, uri ] }
65             gnocchi::keystone::auth::region: {get_param: KeystoneRegion}
66             gnocchi::keystone::auth::tenant: 'service'
67             gnocchi::keystone::authtoken::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri]}
68             gnocchi::keystone::authtoken::auth_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
69             gnocchi::keystone::authtoken::password: {get_param: GnocchiPassword}
70             gnocchi::keystone::authtoken::project_name: 'service'
71             gnocchi::wsgi::apache::ssl: false
72             tripleo::profile::base::gnocchi::api::gnocchi_backend: {get_param: GnocchiBackend}
73       step_config: |
74         include ::tripleo::profile::base::gnocchi::api