]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/backup.pp
Change release url
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / backup.pp
index b35c54270fbe2f573700ab782840fe10e32653b0..6b8d00c00d93b10af27ba96724931eadbecaa5ac 100644 (file)
@@ -14,6 +14,7 @@ class role::backup (
   include "profile::xmr_stak"
   include "profile::known_hosts"
   include "profile::boinc"
+  include "profile::monitoring"
 
   include "role::backup::postgresql"
 
@@ -124,5 +125,11 @@ class role::backup (
         order   => "$order_dirname-$order_part",
       }
     }
+
+    @profile::monitoring::local_service { "Last backup in $base is not too old":
+      local => {
+        check_command => "check_last_file_date!$base!14",
+      }
+    }
   }
 }