From 75052733c654d4152e31d1d9736641e7199b29d5 Mon Sep 17 00:00:00 2001 From: kwadronaut Date: Sun, 21 Oct 2018 17:18:39 +0200 Subject: Update couch module for Debian stretch Puppet syntax of versioncmp and lsbdistcodename Fixes #1 --- manifests/base.pp | 2 +- manifests/init.pp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/base.pp b/manifests/base.pp index 6c7bf25..97d9ae6 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -31,7 +31,7 @@ class couchdb::base { # couchrest gem is required for couch-doc-update script, # and it needs the ruby-dev package installed to build - if versioncmp($::operatingsystemrelease, '8') < 0 { + if versioncmp($::operatingsystemmajrelease}", '8') < 0 { $couchrest_version = '1.2' } else { diff --git a/manifests/init.pp b/manifests/init.pp index 12598ba..9a3146e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -13,9 +13,9 @@ class couchdb ( include ::stdlib case $::operatingsystem { - Debian: { + 'Debian': { case $::lsbdistcodename { - /lenny|squeeze|wheezy|jessie/: { + /wheezy|jessie|stretch/: { include couchdb::debian if $bigcouch == true { include couchdb::bigcouch::debian -- cgit v1.2.3