aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2022-12-27 19:47:26 +0000
committerPascal Terjan <pterjan@mageia.org>2022-12-27 19:47:26 +0000
commit01debfea6927aea4de501090f9424646f2c6730d (patch)
tree0172bfde85f1d75fc9868faa3ffa581640c9faaf
parent76da7f42ef3fdcedce7f29814635298b426e6247 (diff)
downloadpuppet-01debfea6927aea4de501090f9424646f2c6730d.tar
puppet-01debfea6927aea4de501090f9424646f2c6730d.tar.gz
puppet-01debfea6927aea4de501090f9424646f2c6730d.tar.bz2
puppet-01debfea6927aea4de501090f9424646f2c6730d.tar.xz
puppet-01debfea6927aea4de501090f9424646f2c6730d.zip
Attempt to keep age check relevant
-rw-r--r--modules/youri-check/manifests/init.pp2
-rw-r--r--modules/youri-check/templates/cauldron.conf4
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/youri-check/manifests/init.pp b/modules/youri-check/manifests/init.pp
index 6ee6461c..2f8acade 100644
--- a/modules/youri-check/manifests/init.pp
+++ b/modules/youri-check/manifests/init.pp
@@ -39,6 +39,8 @@ class youri-check {
$pgsql_server = $base::pgsql_server
$pgsql_user = "youri${version}"
$pgsql_password = extlookup('youri_pgsql','x')
+ # We want to alert to packages older than last mass rebuild
+ $max_days = (Timestamp.now - Timestamp.parse('2022-03-01', '%F')).days
file { "${config}":
ensure => present,
diff --git a/modules/youri-check/templates/cauldron.conf b/modules/youri-check/templates/cauldron.conf
index ce69c099..4c3a4818 100644
--- a/modules/youri-check/templates/cauldron.conf
+++ b/modules/youri-check/templates/cauldron.conf
@@ -278,8 +278,8 @@ tests:
age:
class: Youri::Check::Test::Age
options:
- max: 9 month
- pattern: %m month
+ max: <%= max_days %> days
+ pattern: %m days
# reports definitions
reports: