diff options
author | elijah <elijah@riseup.net> | 2013-03-08 23:05:06 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-03-08 23:05:06 -0800 |
commit | 63eee5842371aad31c4664b32925c149bbfcbafa (patch) | |
tree | 2b102b394831f8cf29435740562e53cf11bf9093 /services/webapp.json | |
parent | 2a14d34be523c01ca15c946937d5dfd0cb5f6b32 (diff) |
added stunnel and haproxy keys to webapp.json
Diffstat (limited to 'services/webapp.json')
-rw-r--r-- | services/webapp.json | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/services/webapp.json b/services/webapp.json index 4bd9b50..13123e4 100644 --- a/services/webapp.json +++ b/services/webapp.json @@ -1,5 +1,10 @@ { "webapp": { - "couchdb_user": "= global.services[:couchdb].couch.users[:admin]" + "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]}" } }
\ No newline at end of file |