blob: f795a13b7b390b2e00d0fd3eb8019e57fc6c84aa [file] [log] [blame]
/etc/sensu/conf.d/slack.json:
file.managed:
- source: salt://sensu/files/handlers/slack.json
- template: jinja
- defaults:
handler_name: "{{ handler_name }}"
handler_setting: "config"
- watch_in:
- service: service_sensu_server
- service: service_sensu_api
- require_in:
- file: purge_sensu_conf_dir
/etc/sensu/conf.d/handler_slack.json:
file.managed:
- source: salt://sensu/files/handlers/slack.json
- template: jinja
- defaults:
handler_name: "{{ handler_name }}"
handler_setting: "handler"
- watch_in:
- service: service_sensu_server
- service: service_sensu_api
- require_in:
- file: purge_sensu_conf_dir
/etc/sensu/handlers/slack.rb:
file.managed:
- source: salt://sensu/files/plugins/handlers/notification/slack.rb
- mode: 700
- user: sensu
- watch_in:
- service: service_sensu_server
- service: service_sensu_api