1 heat_template_version: ocata
3 description: Sensu client configured with Puppet
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.
18 Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
22 description: Keystone admin user password
26 description: Keystone region for endpoint
28 SensuClientCustomConfig:
30 description: Hash containing custom sensu-client variables.
32 label: Custom configuration for Sensu Client variables
36 type: ./sensu-base.yaml
38 ServiceNetMap: {get_param: ServiceNetMap}
39 DefaultPasswords: {get_param: DefaultPasswords}
40 EndpointMap: {get_param: EndpointMap}
44 description: Role data for the Sensu client role.
46 service_name: sensu_client
47 monitoring_subscription: all
50 - get_attr: [SensuBase, role_data, config_settings]
56 - {get_param: SensuClientCustomConfig}
59 password: {get_param: AdminPassword}
60 auth_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
62 region: {get_param: KeystoneRegion}
64 include ::tripleo::profile::base::monitoring::sensu
66 - name: Check if sensu_client is deployed
67 command: systemctl is-enabled sensu-client
70 register: sensu_client_enabled
71 - name: Check status of sensu-client service
73 /usr/bin/systemctl show sensu-client --property ActiveState |
75 when: sensu_client_enabled.rc == 0
76 tags: step0,validation
77 - name: Stop sensu-client service
79 when: sensu_client_enabled.rc == 0
80 service: name=sensu-client state=stopped
81 - name: Install sensu package if it was disabled
83 yum: name=sensu state=latest
84 when: sensu_client.rc != 0