aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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: