include "profile::tools"
include "profile::xmr_stak"
include "profile::known_hosts"
+ include "profile::boinc"
+ include "profile::monitoring"
+
+ include "role::backup::postgresql"
ensure_packages(["rsync"])
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],
}
$dirname = $infos["name"]
$login = $infos["login"]
$host = $infos["host"]
+ $port = if $infos.dig("port") { $infos.dig("port") } else { 22 }
$dest = "$login@$host"
$base = "$mountpoint/$dirname"
$nbr = $infos["nbr"]
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",
+ }
+ }
}
}