summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/bigcouch.pp11
-rw-r--r--manifests/init.pp7
2 files changed, 6 insertions, 12 deletions
diff --git a/manifests/bigcouch.pp b/manifests/bigcouch.pp
index 67d8691..bfed611 100644
--- a/manifests/bigcouch.pp
+++ b/manifests/bigcouch.pp
@@ -1,16 +1,5 @@
class couchdb::bigcouch inherits couchdb::base {
- case $::operatingsystem {
- Debian: {
- case $::lsbdistcodename {
- /squeeze|wheezy/: { #include couchdb::bigcouch::debian
- }
- default: { fail "bigcouch not available for ${::operatingsystem}/${::lsbdistcodename}" }
- }
- }
- default: { fail "bigcouch not available for ${::operatingsystem}/${::lsbdistcodename}" }
- }
-
apt::sources_list {'bigcouch-cloudant.list':
content => "deb http://packages.cloudant.com/debian $::lsbdistcodename main"
}
diff --git a/manifests/init.pp b/manifests/init.pp
index 25a0cde..820c71d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -5,7 +5,12 @@ class couchdb (
case $::operatingsystem {
Debian: {
case $::lsbdistcodename {
- /lenny|squeeze|wheezy/: { include couchdb::debian }
+ /lenny|squeeze|wheezy/: {
+ include couchdb::debian
+ if $bigcouch == true {
+ include couchdb::bigcouch::debian
+ }
+ }
default: { fail "couchdb not available for ${::operatingsystem}/${::lsbdistcodename}" }
}
}