]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/etherpad.pp
Monitor websites from master
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / etherpad.pp
index 5ab5023124a28805980a03d5c72c08273db0054c..119af5653d808284e8d0f81763404ede9d691e9b 100644 (file)
@@ -22,6 +22,7 @@ class role::etherpad (
   include "profile::tools"
   include "profile::postgresql"
   include "profile::apache"
+  include "profile::monitoring"
 
   ensure_packages(["npm"])
   ensure_packages(["abiword"])
@@ -121,4 +122,17 @@ class role::etherpad (
     proxy_preserve_host => true;
     default: *          => $::profile::apache::apache_vhost_default;
   }
+
+  @profile::monitoring::external_service { "Etherpad service is running on $web_host":
+    type   => "web",
+    master => {
+      check_command => "check_https!$web_host!/!<title>Etherpad"
+    }
+  }
+  @profile::monitoring::external_service { "$web_host ssl certificate is up to date":
+    type   => "web",
+    master => {
+      check_command => "check_https_certificate!$web_host"
+    }
+  }
 }