summaryrefslogtreecommitdiffstats
path: root/modules/tozt/manifests/prometheus.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tozt/manifests/prometheus.pp')
-rw-r--r--modules/tozt/manifests/prometheus.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/tozt/manifests/prometheus.pp b/modules/tozt/manifests/prometheus.pp
index f0454f1..758b86d 100644
--- a/modules/tozt/manifests/prometheus.pp
+++ b/modules/tozt/manifests/prometheus.pp
@@ -1,6 +1,20 @@
class tozt::prometheus {
include prometheus
+ file {
+ "/media/persistent/prometheus":
+ ensure => directory,
+ owner => "prometheus",
+ group => "prometheus",
+ require => [
+ File["/media/persistent"],
+ Package["prometheus"],
+ ];
+ "/etc/conf.d/prometheus":
+ source => "puppet:///modules/tozt/prometheus-service-conf",
+ require => Package["prometheus"];
+ }
+
nginx::site {
"prometheus-tls":
source => 'puppet:///modules/tozt/nginx/prometheus-tls.conf',