1 heat_template_version: pike
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.
17 description: Role name on which the service is applied
21 description: Parameters specific to the role
26 Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
30 description: Keystone admin user password
34 description: Keystone region for endpoint
36 SensuClientCustomConfig:
38 description: Hash containing custom sensu-client variables.
40 label: Custom configuration for Sensu Client variables
44 type: ./sensu-base.yaml
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 EndpointMap: {get_param: EndpointMap}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
54 description: Role data for the Sensu client role.
56 service_name: sensu_client
57 monitoring_subscription: all
60 - get_attr: [SensuBase, role_data, config_settings]
66 - {get_param: SensuClientCustomConfig}
69 password: {get_param: AdminPassword}
70 auth_url: {get_param: [EndpointMap, KeystoneInternal, uri]}
72 region: {get_param: KeystoneRegion}
74 include ::tripleo::profile::base::monitoring::sensu
76 - name: Check if sensu_client is deployed
77 command: systemctl is-enabled sensu-client
80 register: sensu_client_enabled
81 - name: Check status of sensu-client service
83 /usr/bin/systemctl show sensu-client --property ActiveState |
85 when: sensu_client_enabled.rc == 0
86 tags: step0,validation
87 - name: Stop sensu-client service
89 when: sensu_client_enabled.rc == 0
90 service: name=sensu-client state=stopped
91 - name: Install sensu package if it was disabled
93 yum: name=sensu state=latest
94 when: sensu_client_enabled.rc != 0