aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-02-24 21:49:26 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-02-24 21:49:26 -0300
commit83a0771b78922e725cf5e1750572facfb053d38e (patch)
treed33f3c70651bf9c1744d3c99251e6a9d37986b8a
parenta2c7585e4236c6fe780baeb6f263c85b548ecba4 (diff)
downloadpuppet-monkeysphere-83a0771b78922e725cf5e1750572facfb053d38e.tar.gz
puppet-monkeysphere-83a0771b78922e725cf5e1750572facfb053d38e.tar.bz2
Fix: update package availability depending on the Debian version
-rw-r--r--manifests/init.pp12
1 files changed, 10 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index b06a535..4c360c2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -30,8 +30,16 @@ class monkeysphere(
$keyserver = 'pool.sks-keyservers.net'
) {
# The needed packages
- package { 'monkeysphere':
- ensure => $ensure_version,
+ package { [
+ 'monkeysphere',
+ ]:
+ ensure => $::lsbdistcodename ? {
+ 'buster' => present,
+ 'bullseye' => present,
+ 'sid' => present,
+ 'experimental' => present,
+ default => $ensure_version,
+ }
}
if $ssh_port != '' {