diff options
author | Azul <azul@riseup.net> | 2014-06-23 21:50:50 +0200 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-06-25 18:17:39 -0700 |
commit | 813f840cceb284c38dcedea1577d125e62e280f0 (patch) | |
tree | 140a8ff24a61ec8a1be28d87fce3b1728cf711c6 /provider_base/services | |
parent | 5075fdeee3c8b70d39a2f6105d8e1e33c6843eb4 (diff) |
hand replication credentials to tapicero
Diffstat (limited to 'provider_base/services')
-rw-r--r-- | provider_base/services/_couchdb_mirror.json | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/provider_base/services/_couchdb_mirror.json b/provider_base/services/_couchdb_mirror.json index a496804d..6a3402bd 100644 --- a/provider_base/services/_couchdb_mirror.json +++ b/provider_base/services/_couchdb_mirror.json @@ -12,7 +12,10 @@ "replication": { // for now, pick the first close one, or the first one. // in the future, maybe use haproxy to balance among all the masters - "masters": "= try{pick_node(:couch_master,nodes_near_me['services' => 'couchdb']['couch.master' => true]).pick_fields('domain.internal', 'couch.port')} || try{pick_node(:couch_master,nodes_like_me['services' => 'couchdb']['couch.master' => true]).pick_fields('domain.internal', 'couch.port')}" + "masters": "= try{pick_node(:couch_master,nodes_near_me['services' => 'couchdb']['couch.master' => true]).pick_fields('domain.internal', 'couch.port')} || try{pick_node(:couch_master,nodes_like_me['services' => 'couchdb']['couch.master' => true]).pick_fields('domain.internal', 'couch.port')}", + "username": "replication", + "password": "= secret :couch_replication_password", + "role": "replication" } } -}
\ No newline at end of file +} |