2 Revīzijas f06eb9af46 ... 9b612bdc7a

Autors SHA1 Ziņojums Datums
  Philipp Fromme 9b612bdc7a graylog: Add cronjob to check for notifications 2 gadi atpakaļ
  Philipp Fromme f06eb9af46 graylog: Add cronjob to check for notifications 2 gadi atpakaļ
1 mainītis faili ar 14 papildinājumiem un 1 dzēšanām
  1. 14 1
      graylog/init.sls

+ 14 - 1
graylog/init.sls

@@ -39,6 +39,19 @@ graylog-server:
     - source: salt://graylog/server.conf.tmpl
     - template: jinja
     - context: 
-      graylog_config: {{graylog_config}}
+      graylog_config: {{ graylog_config }}
     - require:
       - pkg: graylog-server
+
+# Install cronjob and notification script
+/etc/cron.d/graylog-system-notifications:
+  file.managed:
+    - source: salt://graylog/graylog-system-notifications.cron
+
+/usr/local/sbin/graylog-system-notifications:
+  file.managed:
+    - source: salt://graylog/graylog-system-notifications
+    - mode: 700
+    - template: jinja
+    - context:
+      graylog_config: {{ graylog_config }}