summaryrefslogtreecommitdiff
path: root/provider_base/services/_couchdb_multimaster.json
blob: 0f340e00370f3fbc2f6f93d84102e3dca891a004 (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.mode' => 'multimaster'], couch.bigcouch.epmd_port)",
      "ednp_clients": "= stunnel_client(nodes_like_me['services' => 'couchdb']['couch.mode' => 'multimaster'], 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.mode' => 'multimaster'].exclude(self).field('domain.full')"
    }
  }
}