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/mirror.pp | |
parent | ae3ad84bdf646ddb3c8da9258201307ede65ea41 (diff) |
first steps towards mirroring couch
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'] + } + +} |