blob: 8e886aa1647784eb9e7a6036c82729feb6819a7a (
plain)
1
2
3
4
5
6
7
8
9
|
{
"webapp": {
"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] = {'accept_port' => nextport.to_s, 'connect' => node.domain.name}; nextport+=1; hsh}",
"haproxy": {
"local_ports": "= stunnel.values.collect {|i|i['accept_port']}"
}
}
|