diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 09:11:42 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-07-11 09:21:36 +0200 |
commit | d8bc769648c1528f5d749deee060d70e326ef431 (patch) | |
tree | 06b1e40db99815133dcc40e3e68531d45e1bd228 /modules/role | |
parent | 0cdf494080b285e81b531a38dbbac7f7d8e9c990 (diff) | |
download | Puppet-d8bc769648c1528f5d749deee060d70e326ef431.tar.gz Puppet-d8bc769648c1528f5d749deee060d70e326ef431.tar.zst Puppet-d8bc769648c1528f5d749deee060d70e326ef431.zip |
Monitor rsync backups
Diffstat (limited to 'modules/role')
-rw-r--r-- | modules/role/manifests/backup.pp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/role/manifests/backup.pp b/modules/role/manifests/backup.pp index c0672c6..6b8d00c 100644 --- a/modules/role/manifests/backup.pp +++ b/modules/role/manifests/backup.pp | |||
@@ -125,5 +125,11 @@ class role::backup ( | |||
125 | order => "$order_dirname-$order_part", | 125 | order => "$order_dirname-$order_part", |
126 | } | 126 | } |
127 | } | 127 | } |
128 | |||
129 | @profile::monitoring::local_service { "Last backup in $base is not too old": | ||
130 | local => { | ||
131 | check_command => "check_last_file_date!$base!14", | ||
132 | } | ||
133 | } | ||
128 | } | 134 | } |
129 | } | 135 | } |