summaryrefslogtreecommitdiff
path: root/services/webapp.json
blob: 13123e4828b1cdd50511059e7ce47c06c6ab6d4d (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]}"
  }
}