From 97d3bb4262e808c728c0a19dcbbad3a12c0748e5 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 19 Jul 2019 12:06:13 +0200 Subject: [PATCH] Allow DC19 access to the PG on vittoria, re: RT#7845 --- modules/roles/manifests/veyepar.pp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/roles/manifests/veyepar.pp b/modules/roles/manifests/veyepar.pp index a60247551..4f8aa2198 100644 --- a/modules/roles/manifests/veyepar.pp +++ b/modules/roles/manifests/veyepar.pp @@ -1,3 +1,16 @@ class roles::veyepar { ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, } + + $now = Timestamp() + $date = $now.strftime('%F') + + if versioncmp($date, '2019-08-15') <= 0 { + @ferm::rule { 'temporary-dc19-access': + description => 'temporarily allow DC19 access, cf. RT#7845', + rule => '&SERVICE_RANGE(tcp, 5432, ( 200.134.17.48/28 ))', + } + } else { + notify {"Temporary DC19 ferm rule expired, cf. RT#7845": + loglevel => warning, } + } } -- 2.20.1