summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2018-10-21 17:18:39 +0200
committerkwadronaut <kwadronaut@leap.se>2018-10-21 17:22:06 +0200
commit75052733c654d4152e31d1d9736641e7199b29d5 (patch)
tree730fc2d0a5c1ad4162f67748c550bdc67fff8761
parent76ff149a095023611c05bbb00157d06f87b07c05 (diff)
Update couch module for Debian stretch
Puppet syntax of versioncmp and lsbdistcodename Fixes #1
-rw-r--r--manifests/base.pp2
-rw-r--r--manifests/init.pp4
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