Merge "Pass cinder_iscsi_address without brackets"
[apex-tripleo-heat-templates.git] / puppet / services / ceilometer-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Ceilometer API 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
22
23 resources:
24   CeilometerServiceBase:
25     type: ./ceilometer-base.yaml
26     properties:
27       ServiceNetMap: {get_param: ServiceNetMap}
28       DefaultPasswords: {get_param: DefaultPasswords}
29       EndpointMap: {get_param: EndpointMap}
30
31   ApacheServiceBase:
32     type: ./apache.yaml
33     properties:
34       ServiceNetMap: {get_param: ServiceNetMap}
35       DefaultPasswords: {get_param: DefaultPasswords}
36       EndpointMap: {get_param: EndpointMap}
37
38 outputs:
39   role_data:
40     description: Role data for the Ceilometer API role.
41     value:
42       service_name: ceilometer_api
43       config_settings:
44         map_merge:
45           - get_attr: [ApacheServiceBase, role_data, config_settings]
46           - get_attr: [CeilometerServiceBase, role_data, config_settings]
47           - tripleo.ceilometer_api.firewall_rules:
48               '124 ceilometer':
49                 dport:
50                   - 8777
51                   - 13777
52             # NOTE: bind IP is found in Heat replacing the network name with the
53             # local node IP for the given network; replacement examples
54             # (eg. for internal_api):
55             # internal_api -> IP
56             # internal_api_uri -> [IP]
57             # internal_api_subnet - > IP/CIDR
58           - ceilometer::api::service_name: 'httpd'
59             ceilometer::api::host: {get_param: [ServiceNetMap, CeilometerApiNetwork]}
60             ceilometer::wsgi::apache::bind_host: {get_param: [ServiceNetMap, CeilometerApiNetwork]}
61             ceilometer::wsgi::apache::ssl: false
62       step_config: |
63         include ::tripleo::profile::base::ceilometer::api