From: Peter Palfrader Date: Sun, 29 Sep 2019 19:09:02 +0000 (+0200) Subject: roles::snapshot_db: make packages ignore conditional on running on buster X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=12c290a9438b5becc2e2a48f54083295ddee32f8;p=mirror%2Fdsa-puppet.git roles::snapshot_db: make packages ignore conditional on running on buster --- diff --git a/modules/roles/manifests/snapshot_db.pp b/modules/roles/manifests/snapshot_db.pp index 5f045e858..a14df0203 100644 --- a/modules/roles/manifests/snapshot_db.pp +++ b/modules/roles/manifests/snapshot_db.pp @@ -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'