blob: 76a596f489952f616ea1e627bf198f4fb748c07c (
plain)
1
2
3
4
5
6
7
8
9
10
|
{
"webapp": {
"couchdb_user": "= global.services[:couchdb].couch.users[:admin]",
"couchdb_hosts": "= hostnames nodes_like_me[:services => :couchdb]"
},
"stunnel": "= nextport = 5000; nodes_like_me[:services => :couchdb].values.inject({}) {|hsh, node| hsh[node.name + node.couch.port.to_s] = {'host' => node.domain.name, 'port' => node.couch.port, 'local_port' => nextport}; nextport+=1; hsh}",
"haproxy": {
"local_ports": "= stunnel.values.collect {|i|i['local_port']}"
}
}
|