Ignore local package trapperkeeper-webserver-jetty9-clojure on puppetmaster, cf....
authorPeter Palfrader <peter@palfrader.org>
Thu, 26 Sep 2019 07:34:59 +0000 (09:34 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 26 Sep 2019 07:34:59 +0000 (09:34 +0200)
modules/roles/manifests/puppetmaster.pp

index af3855d..9886652 100644 (file)
@@ -11,4 +11,21 @@ class roles::puppetmaster {
     target_user => 'puppet',
     collect_tag => 'puppetmaster',
   }
     target_user => 'puppet',
     collect_tag => 'puppetmaster',
   }
+
+  # we have installed a newer trapperkeeper-webserver-jetty9-clojure,
+  # cf. Debian#924005, Debian#930562
+  if versioncmp(Timestamp().strftime('%F'), '2019-12-01') <= 0 {
+    $ensure = versioncmp($::operatingsystemrelease, '10.1') <= 0 ? {
+      true    => 'present',
+      default => 'absent',
+    }
+    file { '/etc/nagios/obsolete-packages-ignore.d/trapperkeeper-webserver-jetty9-clojure':
+      content => "trapperkeeper-webserver-jetty9-clojure\n",
+    }
+  } elsif versioncmp(Timestamp().strftime('%F'), '2020-02-01') <= 0 {
+    notify {'Temporary ignore rule expired, package should be in the archive':
+      loglevel => warning, }
+  } else {
+    fail('Clean up roles::puppetmaster')
+  }
 }
 }