From 01debfea6927aea4de501090f9424646f2c6730d Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 27 Dec 2022 19:47:26 +0000 Subject: Attempt to keep age check relevant --- modules/youri-check/manifests/init.pp | 2 ++ modules/youri-check/templates/cauldron.conf | 4 ++-- 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: -- cgit v1.2.1