Filip Pytloun | 818f5e1 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
| 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 Komarek | 1eec01f | 2016-03-15 23:42:50 +0100 | [diff] [blame] | 12 | - require_in: |
Ales Komarek | 61d20c8 | 2016-03-17 19:13:35 +0100 | [diff] [blame] | 13 | - file: sensu_conf_dir_clean |
Filip Pytloun | 818f5e1 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 14 | |
| 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 Komarek | 1eec01f | 2016-03-15 23:42:50 +0100 | [diff] [blame] | 25 | - require_in: |
Ales Komarek | 61d20c8 | 2016-03-17 19:13:35 +0100 | [diff] [blame] | 26 | - file: sensu_conf_dir_clean |
Filip Pytloun | 818f5e1 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 27 | |
| 28 | /etc/sensu/handlers/sccd.py: |
| 29 | file.managed: |
| 30 | - source: salt://sensu/files/plugins/handlers/notification/sccd.py |
Richard Felkl | 8780e34 | 2017-07-13 10:09:23 +0200 | [diff] [blame^] | 31 | - makedirs: True |
Filip Pytloun | 818f5e1 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 32 | - mode: 700 |
| 33 | - user: sensu |
| 34 | - watch_in: |
| 35 | - service: service_sensu_server |
| 36 | - service: service_sensu_api |