diff options
author | kwadronaut <kwadronaut@leap.se> | 2018-10-21 17:18:39 +0200 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2018-10-21 17:22:06 +0200 |
commit | 75052733c654d4152e31d1d9736641e7199b29d5 (patch) | |
tree | 730fc2d0a5c1ad4162f67748c550bdc67fff8761 | |
parent | 76ff149a095023611c05bbb00157d06f87b07c05 (diff) |
Update couch module for Debian stretch
Puppet syntax of versioncmp and lsbdistcodename
Fixes #1
-rw-r--r-- | manifests/base.pp | 2 | ||||
-rw-r--r-- | 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 |