summaryrefslogtreecommitdiff
path: root/provider_base/services/_couchdb_mirror.json
diff options
context:
space:
mode:
authorElijah Sparrow <elijah@riseup.net>2014-06-23 14:27:31 -0700
committerElijah Sparrow <elijah@riseup.net>2014-06-23 14:27:31 -0700
commitffe760c06b3189bc5d67653e952fd44fdb0f08cf (patch)
treee91ffa4168f5b8e797ffc56d5c0fd997ec738959 /provider_base/services/_couchdb_mirror.json
parent9b55b9a0feac9ec778db74f250d4bc2bb5831e08 (diff)
parent04d1369ea78c404907dea4aca758e08efe3a9cdd (diff)
Merge pull request #4 from azul/feature/couch
permissions for replication
Diffstat (limited to 'provider_base/services/_couchdb_mirror.json')
-rw-r--r--provider_base/services/_couchdb_mirror.json7
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
+}