Initial commit
diff --git a/sensu/server/_handler_default.sls b/sensu/server/_handler_default.sls
new file mode 100644
index 0000000..b298507
--- /dev/null
+++ b/sensu/server/_handler_default.sls
@@ -0,0 +1,10 @@
+
+/etc/sensu/conf.d/handler_{{ handler_name }}.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/{{ handler_name }}.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
diff --git a/sensu/server/_handler_flapjack.sls b/sensu/server/_handler_flapjack.sls
new file mode 100644
index 0000000..42c6288
--- /dev/null
+++ b/sensu/server/_handler_flapjack.sls
@@ -0,0 +1,19 @@
+
+/etc/sensu/conf.d/flapjack.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/{{ handler_name }}.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
+
+/etc/sensu/extensions/handlers/flapjack.rb:
+ file.managed:
+ - source: salt://sensu/files/plugins/handlers/flapjack.rb
+ - mode: 660
+ - user: sensu
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
diff --git a/sensu/server/_handler_mail.sls b/sensu/server/_handler_mail.sls
new file mode 100644
index 0000000..cbe98f8
--- /dev/null
+++ b/sensu/server/_handler_mail.sls
@@ -0,0 +1,31 @@
+
+/etc/sensu/conf.d/mail.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/mail.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ handler_setting: "config"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
+
+/etc/sensu/conf.d/handler_mail.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/mail.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ handler_setting: "handler"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
+
+/etc/sensu/handlers/mail.py:
+ file.managed:
+ - source: salt://sensu/files/plugins/handlers/notification/mail.py
+ - mode: 700
+ - user: sensu
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
\ No newline at end of file
diff --git a/sensu/server/_handler_sccd.sls b/sensu/server/_handler_sccd.sls
new file mode 100644
index 0000000..7a6441c
--- /dev/null
+++ b/sensu/server/_handler_sccd.sls
@@ -0,0 +1,31 @@
+
+/etc/sensu/conf.d/sccd.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/sccd.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ handler_setting: "config"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
+
+/etc/sensu/conf.d/handler_sccd.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/sccd.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ handler_setting: "handler"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
+
+/etc/sensu/handlers/sccd.py:
+ file.managed:
+ - source: salt://sensu/files/plugins/handlers/notification/sccd.py
+ - mode: 700
+ - user: sensu
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
\ No newline at end of file
diff --git a/sensu/server/_handler_slack.sls b/sensu/server/_handler_slack.sls
new file mode 100644
index 0000000..994e2d6
--- /dev/null
+++ b/sensu/server/_handler_slack.sls
@@ -0,0 +1,31 @@
+
+/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
+
+/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
+
+/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
\ No newline at end of file
diff --git a/sensu/server/_handler_statsd.sls b/sensu/server/_handler_statsd.sls
new file mode 100644
index 0000000..8412d5a
--- /dev/null
+++ b/sensu/server/_handler_statsd.sls
@@ -0,0 +1,37 @@
+
+python-statsd:
+ pip.installed:
+ - name: python-statsd == 1.6.0
+
+/etc/sensu/conf.d/statsd.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/statsd.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ handler_setting: "config"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
+ - require:
+ - pip: python-statsd
+
+/etc/sensu/conf.d/handler_statsd.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/statsd.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ handler_setting: "handler"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
+
+/etc/sensu/handlers/statsd_handler.py:
+ file.managed:
+ - source: salt://sensu/files/plugins/handlers/notification/statsd.py
+ - mode: 700
+ - user: sensu
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api
\ No newline at end of file
diff --git a/sensu/server/_handler_stdout.sls b/sensu/server/_handler_stdout.sls
new file mode 100644
index 0000000..1371cb3
--- /dev/null
+++ b/sensu/server/_handler_stdout.sls
@@ -0,0 +1,11 @@
+
+/etc/sensu/conf.d/handler_stdout.json:
+ file.managed:
+ - source: salt://sensu/files/handlers/stdout.json
+ - template: jinja
+ - defaults:
+ handler_name: "{{ handler_name }}"
+ handler_setting: "handler"
+ - watch_in:
+ - service: service_sensu_server
+ - service: service_sensu_api