]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/role/manifests/backup.pp
Add monitoring for backup
[perso/Immae/Projets/Puppet.git] / modules / role / manifests / backup.pp
index edfd5e0f83f530a4e28f3ca2d5d33567f131c478..c0672c6c036b6032dae1471606853ca6f24e2a89 100644 (file)
@@ -8,10 +8,17 @@ class role::backup (
 ) {
   include "base_installation"
 
+  include "profile::fstab"
   include "profile::mail"
   include "profile::tools"
   include "profile::xmr_stak"
   include "profile::known_hosts"
+  include "profile::boinc"
+  include "profile::monitoring"
+
+  include "role::backup::postgresql"
+
+  ensure_packages(["rsync"])
 
   ssh_keygen { $user:
     notify => Notify_refresh["notify-backup-sshkey-change"]
@@ -38,12 +45,12 @@ class role::backup (
     mode           => "0755",
   }
 
-  cron { "backup":
+  cron::job { "backup":
     ensure  => present,
     command => $backup_script,
     user    => $user,
     minute  => 25,
-    hour    => 3,
+    hour    => "3,15",
     require => Concat[$backup_script],
   }