diff options
author | Azul <azul@riseup.net> | 2014-06-19 20:02:02 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-06-19 20:02:02 +0200 |
commit | 9034a2eb1fdec68d46aa0d1ea2720409a7312f35 (patch) | |
tree | 4f7cbb3e5fcc91c8ab2cf3ca6ff53ce03b37c384 /puppet/modules/site_couchdb/manifests/init.pp | |
parent | ae3ad84bdf646ddb3c8da9258201307ede65ea41 (diff) |
first steps towards mirroring couch
Diffstat (limited to 'puppet/modules/site_couchdb/manifests/init.pp')
-rw-r--r-- | puppet/modules/site_couchdb/manifests/init.pp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/puppet/modules/site_couchdb/manifests/init.pp b/puppet/modules/site_couchdb/manifests/init.pp index 22d6ef45..0b923c9f 100644 --- a/puppet/modules/site_couchdb/manifests/init.pp +++ b/puppet/modules/site_couchdb/manifests/init.pp @@ -35,7 +35,7 @@ class site_couchdb { $couchdb_webapp_salt = $couchdb_webapp['salt'] $couchdb_backup = $couchdb_config['backup'] - $couchdb_bigcouch = $couchdb_config['mode'] == "multimaster" + $couchdb_mode = $couchdb_config['mode'] class { 'couchdb': bigcouch => $couchdb_bigcouch, @@ -94,7 +94,9 @@ class site_couchdb { include site_couchdb::designs include site_couchdb::logrotate - if $couchdb_bigcouch { include site_couchdb::bigcouch } + if $couchdb_mode == "multimaster" { include site_couchdb::bigcouch } + if $couchdb_mode == "mirror" { include site_couchdb::mirror } + if $couchdb_backup { include site_couchdb::backup } include site_shorewall::couchdb |