Merge "Add trunking plugin to list of default ML2 service plugins"
[apex-tripleo-heat-templates.git] / puppet / services / monitoring / sensu-client.yaml
1 heat_template_version: 2016-04-08
2
3 description: Sensu client configured with Puppet
4
5 parameters:
6   ServiceNetMap:
7     default: {}
8     description: Mapping of service_name -> network name. Typically set
9                  via parameter_defaults in the resource registry.  This
10                  mapping overrides those in ServiceNetMapDefaults.
11     type: json
12   DefaultPasswords:
13     default: {}
14     type: json
15   EndpointMap:
16     default: {}
17     description: >
18       Mapping of service endpoint -> protocol. Typically set
19       via parameter_defaults in the resource registry.
20     type: json
21   SensuClientCustomConfig:
22     default: {}
23     description: Hash containing custom sensu-client variables.
24     type: json
25     label: Custom configuration for Sensu Client variables
26
27 resources:
28   SensuBase:
29     type: ./sensu-base.yaml
30     properties:
31       ServiceNetMap: {get_param: ServiceNetMap}
32       DefaultPasswords: {get_param: DefaultPasswords}
33       EndpointMap: {get_param: EndpointMap}
34
35 outputs:
36   role_data:
37     description: Role data for the Sensu client role.
38     value:
39       service_name: sensu_client
40       monitoring_subscription: all
41       config_settings:
42         map_merge:
43           - get_attr: [SensuBase, role_data, config_settings]
44           - sensu::api: false
45             sensu::client: true
46             sensu::server: false
47             sensu::client_custom: {get_param: SensuClientCustomConfig}
48       step_config: |
49         include ::tripleo::profile::base::monitoring::sensu