diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/youri-check/manifests/init.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/youri-check/manifests/init.pp b/modules/youri-check/manifests/init.pp index 2f8acade..aef33d17 100644 --- a/modules/youri-check/manifests/init.pp +++ b/modules/youri-check/manifests/init.pp @@ -31,6 +31,7 @@ class youri-check { define config($version) { + include stdlib include youri-check::base $config = "/etc/youri/${version}.conf" @@ -40,7 +41,8 @@ class youri-check { $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 + # 1646092800 is 2022-03-01 (get it with "TZ=UTC date -d2022-03-01 +%s") + $max_days = (time() - 1646092800)/(24*3600) file { "${config}": ensure => present, |