summaryrefslogtreecommitdiff
path: root/manifests/base.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/base.pp')
-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']
})