|
|
@@ -17,6 +17,22 @@
|
|
|
owner: "{{ sensu_user_name }}"
|
|
|
group: "{{ sensu_group_name }}"
|
|
|
src: rabbitmq.json.j2
|
|
|
+ when: sensu_transport == "rabbitmq"
|
|
|
+
|
|
|
+ - name: Deploy Sensu client Redis configuration
|
|
|
+ template:
|
|
|
+ dest: "{{ sensu_config_path }}/conf.d/redis.json"
|
|
|
+ owner: "{{ sensu_user_name }}"
|
|
|
+ group: "{{ sensu_group_name }}"
|
|
|
+ src: sensu-redis.json.j2
|
|
|
+ when: sensu_transport == "redis"
|
|
|
+
|
|
|
+ - name: Deploy Sensu client transport configuration
|
|
|
+ template:
|
|
|
+ dest: "{{ sensu_config_path }}/conf.d/transport.json"
|
|
|
+ owner: "{{ sensu_user_name }}"
|
|
|
+ group: "{{ sensu_group_name }}"
|
|
|
+ src: transport.json.j2
|
|
|
notify: restart sensu-client service
|
|
|
|
|
|
- name: Deploy Sensu client service configuration
|