diff options
author | Elijah Sparrow <elijah@riseup.net> | 2014-06-19 14:28:59 -0700 |
---|---|---|
committer | Elijah Sparrow <elijah@riseup.net> | 2014-06-19 14:28:59 -0700 |
commit | 01e2469631a7136108149e42b5fc242d8dc90b4c (patch) | |
tree | 4f7cbb3e5fcc91c8ab2cf3ca6ff53ce03b37c384 /puppet/modules/site_couchdb/manifests/mirror.pp | |
parent | 1b5f0892bbcb07fa075bfe8c7b083521b38cb73c (diff) | |
parent | 9034a2eb1fdec68d46aa0d1ea2720409a7312f35 (diff) |
Merge pull request #2 from azul/feature/couch
split out bigcouch and only apply if needed, initial code for replication
Diffstat (limited to 'puppet/modules/site_couchdb/manifests/mirror.pp')
-rw-r--r-- | puppet/modules/site_couchdb/manifests/mirror.pp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/puppet/modules/site_couchdb/manifests/mirror.pp b/puppet/modules/site_couchdb/manifests/mirror.pp new file mode 100644 index 00000000..708171e4 --- /dev/null +++ b/puppet/modules/site_couchdb/manifests/mirror.pp @@ -0,0 +1,61 @@ +class site_couchdb::mirror { + + # Couchdb databases + + $from = $site_couchdb::couchdb_config['replication']['masters'][0] + + ### customer database + couchdb::mirror_db { 'customers': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + + ## identities database + couchdb::mirror_db { 'identities': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + + ## keycache database + couchdb::mirror_db { 'keycache': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + + ## sessions database + couchdb::mirror_db { 'sessions': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + + ## shared database + couchdb::mirror_db { 'shared': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + + ## tickets database + couchdb::mirror_db { 'tickets': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + + ## tokens database + couchdb::mirror_db { 'tokens': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + + ## users database + couchdb::mirror_db { 'users': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + + ## messages db + couchdb::mirror_db { 'messages': + from => $from, + require => Couchdb::Query::Setup['localhost'] + } + +} |