roles::snapshot_db: make packages ignore conditional on running on buster
authorPeter Palfrader <peter@palfrader.org>
Sun, 29 Sep 2019 19:09:02 +0000 (21:09 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 29 Sep 2019 19:09:02 +0000 (21:09 +0200)
modules/roles/manifests/snapshot_db.pp

index 5f045e8..a14df02 100644 (file)
@@ -9,7 +9,9 @@ class roles::snapshot_db (
   $now = Timestamp()
   $date = $now.strftime('%F')
 
-  if versioncmp($date, '2020-01-15') <= 0 {
+  if versioncmp($::lsbmajdistrelease, '9') <= 0 {
+    $ensure = 'absent'
+  } elsif versioncmp($date, '2020-01-15') <= 0 {
     $ensure = 'present'
   } else {
     $ensure = 'absent'