summaryrefslogtreecommitdiff
path: root/provider_base/services/_couchdb_multimaster.json
blob: 8c433188f21836a02bd5d450f2211a4067e94566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// Only applied to master couchdb nodes when there are multiple masters
//
{
  "stunnel": {
    "servers": {
      "epmd_server": "= stunnel_server(couch.bigcouch.epmd_port)",
      "ednp_server": "= stunnel_server(couch.bigcouch.ednp_port)"
    },
    "clients": {
      "epmd_clients": "= stunnel_client(nodes_like_me[:services => :couchdb], couch.bigcouch.epmd_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')"
    }
  }
}