From 02941bf1d378a40076bf70abc753fa7de3551635 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Thu, 29 Mar 2018 14:30:06 +0200
Subject: [PATCH] Replace deprecated keyword

---
 tasks/prepare.yml                  |  2 +-
 templates/health_alarm_notify.conf | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/tasks/prepare.yml b/tasks/prepare.yml
index 2ad323a..de874f7 100644
--- a/tasks/prepare.yml
+++ b/tasks/prepare.yml
@@ -4,7 +4,7 @@
 - name: "Install required packages"
   apt:
     pkg: '{{ item }}'
-    state: 'installed'
+    state: 'present'
     update_cache: yes
   with_items:
     - 'zlib1g-dev'
diff --git a/templates/health_alarm_notify.conf b/templates/health_alarm_notify.conf
index 167a26a..893bad7 100644
--- a/templates/health_alarm_notify.conf
+++ b/templates/health_alarm_notify.conf
@@ -87,6 +87,26 @@ curl=""
 # To disable a notification, use the recipient called: disabled
 # This works for all notification methods (including the default recipients).
 
+#------------------------------------------------------------------------------
+# alerta global notification options
+
+# enable/disable sending alerta notifications
+SEND_ALERTA="{{ netdata_alerta_enabled|default('NO') }}"
+
+# here set your alerta server API url
+# this is the API url you defined when installed Alerta server,
+# it is the same for all users. Do not include last slash.
+ALERTA_WEBHOOK_URL="{{ netdata_alerta_webhook|default('') }}"
+
+# Login with an administrative user to you Alerta server and create an API KEY
+# with write permissions.
+ALERTA_API_KEY="{{ netdata_alerta_apikey|default('') }}"
+
+# you can define environments in /etc/alertad.conf option ALLOWED_ENVIRONMENTS
+# standard environments are Production and Development
+# if a role's recipients are not configured, a notification will be send to
+# this Environment (empty = do not send a notification for unconfigured roles):
+DEFAULT_RECIPIENT_ALERTA="{{ netdata_alerta_environment|default('Production') }}"
 
 #------------------------------------------------------------------------------
 # email global notification options
-- 
GitLab