summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorvarac <varac@users.noreply.github.com>2015-11-25 15:47:00 +0100
committervarac <varac@users.noreply.github.com>2015-11-25 15:47:00 +0100
commit83a4d75bf8a480a98ac6fcdc220db59b9133112e (patch)
treeefcca351ba23b292711a0c9a4b8cf1356f28680d /manifests
parentd4e0579ec88e999d42c9f4ffd32489396dce63c4 (diff)
parent2ac3b7c2e3283e5b0f48e6dd3d76c0192ee96a44 (diff)
Merge pull request #4 from pixelated/fix_couchbase_version
ensure couchrest is not too new
Diffstat (limited to 'manifests')
-rw-r--r--manifests/base.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index 1ea41d1..7413c42 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -32,9 +32,15 @@ class couchdb::base {
# and it needs the ruby-dev package installed to build
#include ruby::devel
+ case $::operatingsystemmajrelease {
+ '7': { $couchrest_version = '1.2'}
+ default:{ $couchrest_version = 'latest'}
+ }
+
ensure_packages('ruby-dev')
ensure_packages('couchrest', {
provider => 'gem',
+ ensure => $couchrest_version,
require => Package['ruby-dev']
})