summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/tick/manifests/server/kapacitor.pp1
-rw-r--r--modules/tick/templates/kapacitor.conf1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/tick/manifests/server/kapacitor.pp b/modules/tick/manifests/server/kapacitor.pp
index c1dfcd7..50217e6 100644
--- a/modules/tick/manifests/server/kapacitor.pp
+++ b/modules/tick/manifests/server/kapacitor.pp
@@ -4,6 +4,7 @@ class tick::server::kapacitor {
}
$smtp_password = secret::value('kapacitor_smtp_password')
+ $smtp_to = secret::value('kapacitor_to')
file {
"/etc/kapacitor/kapacitor.conf":
diff --git a/modules/tick/templates/kapacitor.conf b/modules/tick/templates/kapacitor.conf
index 67f86e6..da47c6b 100644
--- a/modules/tick/templates/kapacitor.conf
+++ b/modules/tick/templates/kapacitor.conf
@@ -24,5 +24,6 @@ data_dir = "/media/persistent/kapacitor"
username = "kapacitor-noreply@tozt.net"
password = "<%= @smtp_password %>"
from = "kapacitor-noreply@tozt.net"
+ to = ["<%= @smtp_to %>"]
global = true
state-changes-only = true