From 858032a4b6a0749e0c0ec76e1f9debce9a0e779a Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 10 Mar 2013 15:14:24 -0700 Subject: better stunnel entry for webapp service --- services/webapp.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services') diff --git a/services/webapp.json b/services/webapp.json index 13123e4..76a596f 100644 --- a/services/webapp.json +++ b/services/webapp.json @@ -3,8 +3,8 @@ "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}", + "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]}" + "local_ports": "= stunnel.values.collect {|i|i['local_port']}" } } \ No newline at end of file -- cgit v1.2.3