summaryrefslogtreecommitdiff
path: root/provider_base/services/_couchdb_multimaster.json
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-19 00:02:54 -0700
committerelijah <elijah@riseup.net>2014-06-25 18:17:11 -0700
commitdb669a6911c55d9a5675fb4b42f4de5728f34c76 (patch)
tree9a35b56f81fe845368528795b8c66a38d8bf5c0b /provider_base/services/_couchdb_multimaster.json
parentedf1306a418203df297d034544d51f5cdcd053c7 (diff)
couchdb: generate hiera files suitable for plain couchdb + read-only mirrors
Diffstat (limited to 'provider_base/services/_couchdb_multimaster.json')
-rw-r--r--provider_base/services/_couchdb_multimaster.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/provider_base/services/_couchdb_multimaster.json b/provider_base/services/_couchdb_multimaster.json
new file mode 100644
index 00000000..ff133b9c
--- /dev/null
+++ b/provider_base/services/_couchdb_multimaster.json
@@ -0,0 +1,20 @@
+//
+// Only applied to master couchdb nodes when there are multiple masters
+//
+{
+ "stunnel": {
+ "epmd_server": "= stunnel_server(couch.bigcouch.epmd_port)",
+ "epmd_clients": "= stunnel_client(nodes_like_me[:services => :couchdb], couch.bigcouch.epmd_port)",
+ "ednp_server": "= stunnel_server(couch.bigcouch.ednp_port)",
+ "ednp_clients": "= stunnel_client(nodes_like_me[:services => :couchdb], couch.bigcouch.ednp_port)"
+ },
+ "couch": {
+ "mode": "multimaster",
+ "bigcouch": {
+ "epmd_port": 4369,
+ "ednp_port": 9002,
+ "cookie": "= secret :bigcouch_cookie",
+ "neighbors": "= nodes_like_me['services' => 'couchdb']['couch.master' => true].exclude(self).field('domain.full')"
+ }
+ }
+}