blob: 7a551eb6be6cc2baf5785054dcffe96b9ef8373b [file] [log] [blame]
Filip Pytloun818f5e12015-10-06 16:28:32 +02001
2/etc/sensu/conf.d/sccd.json:
3 file.managed:
4 - source: salt://sensu/files/handlers/sccd.json
5 - template: jinja
6 - defaults:
7 handler_name: "{{ handler_name }}"
8 handler_setting: "config"
9 - watch_in:
10 - service: service_sensu_server
11 - service: service_sensu_api
Ales Komarek1eec01f2016-03-15 23:42:50 +010012 - require_in:
Ales Komarek61d20c82016-03-17 19:13:35 +010013 - file: sensu_conf_dir_clean
Filip Pytloun818f5e12015-10-06 16:28:32 +020014
15/etc/sensu/conf.d/handler_sccd.json:
16 file.managed:
17 - source: salt://sensu/files/handlers/sccd.json
18 - template: jinja
19 - defaults:
20 handler_name: "{{ handler_name }}"
21 handler_setting: "handler"
22 - watch_in:
23 - service: service_sensu_server
24 - service: service_sensu_api
Ales Komarek1eec01f2016-03-15 23:42:50 +010025 - require_in:
Ales Komarek61d20c82016-03-17 19:13:35 +010026 - file: sensu_conf_dir_clean
Filip Pytloun818f5e12015-10-06 16:28:32 +020027
28/etc/sensu/handlers/sccd.py:
29 file.managed:
30 - source: salt://sensu/files/plugins/handlers/notification/sccd.py
Richard Felkl8780e342017-07-13 10:09:23 +020031 - makedirs: True
Filip Pytloun818f5e12015-10-06 16:28:32 +020032 - mode: 700
33 - user: sensu
34 - watch_in:
35 - service: service_sensu_server
36 - service: service_sensu_api