From 4766d719b1181b636dc57374b478d2c21e369dc1 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 26 Jul 2013 02:35:04 -0700 Subject: added haproxy weights to webapp hiera (at haproxy.servers) --- platform.rb | 2 +- provider_base/services/webapp.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/platform.rb b/platform.rb index 9921f3a2..32b8fd19 100644 --- a/platform.rb +++ b/platform.rb @@ -4,7 +4,7 @@ Leap::Platform.define do self.version = "0.2.3" - self.compatible_cli = "1.1.3".."1.99" + self.compatible_cli = "1.1.4".."1.99" # # the facter facts that should be gathered diff --git a/provider_base/services/webapp.json b/provider_base/services/webapp.json index 93396ec7..55331274 100644 --- a/provider_base/services/webapp.json +++ b/provider_base/services/webapp.json @@ -19,7 +19,8 @@ "couch_client": "= stunnel_client(nodes_like_me[:services => :couchdb], global.services[:couchdb].couch.port)" }, "haproxy": { - "local_ports": "= stunnel.couch_client.field(:accept_port)" + "local_ports": "= stunnel.couch_client.field(:accept_port)", + "servers": "= haproxy_servers(nodes_like_me[:services => :couchdb], stunnel.couch_client)" }, "definition_files": { "provider": "= file :provider_json_template", -- cgit v1.2.3