]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/cryptoportfolio/front.pp
Add monitoring for cryptoportfolio
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / cryptoportfolio / front.pp
index 0aa419fe47d64f246780e7c7f73e0a3fefe0a3bc..5f7c09739d3989635362db3fc674065acd19d47c 100644 (file)
@@ -33,13 +33,6 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio {
     require => User["$user:"],
   }
 
-  # Cleanup of old directories
-  file { "${home}/go/src/immae.eu":
-    ensure => "absent",
-    force  => true,
-    backup => false,
-  }
-
   file { "${home}/front":
     ensure  => "link",
     target  => $cf_front_app,
@@ -194,4 +187,16 @@ class role::cryptoportfolio::front inherits role::cryptoportfolio {
     }
   }
 
+  @profile::monitoring::external_service { "Cryptoportfolio website is running on $web_host":
+    type   => "web",
+    master => {
+      check_command => "check_https!$web_host!/!<title>Cryptoportfolio"
+    }
+  }
+  @profile::monitoring::external_service { "$web_host ssl certificate is up to date":
+    type   => "web",
+    master => {
+      check_command => "check_https_certificate!$web_host"
+    }
+  }
 }