From bd238d32a0d29978836985ed192bf06b438bfd91 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 3 Jul 2021 03:14:04 -0400 Subject: enable smtp for grafana --- modules/tozt/manifests/prometheus.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/tozt/manifests/prometheus.pp') diff --git a/modules/tozt/manifests/prometheus.pp b/modules/tozt/manifests/prometheus.pp index 8120cdc..13bc406 100644 --- a/modules/tozt/manifests/prometheus.pp +++ b/modules/tozt/manifests/prometheus.pp @@ -17,8 +17,10 @@ class tozt::prometheus { source => 'puppet:///modules/tozt/prometheus-override.conf'; } + $smtp_password = secret::value("grafana_smtp_password") + file { "/etc/grafana.ini": - source => "puppet:///modules/tozt/grafana.ini", + content => template("tozt/grafana.ini"), require => Package["grafana"]; } -- cgit v1.2.3-54-g00ecf