summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2017-04-07 12:47:00 +0000
committerRalph Bean <rbean@redhat.com>2017-04-07 12:47:07 +0000
commitabdc3271d57cf19ee4b2669acc3bc8cc70357101 (patch)
treee89834b2b2d65b2d37430109668d47d98647dc92
parent0b2e306561cbff12ae95ed128c5ad6a91047735e (diff)
downloadansible-abdc3271d57cf19ee4b2669acc3bc8cc70357101.tar.gz
ansible-abdc3271d57cf19ee4b2669acc3bc8cc70357101.tar.xz
ansible-abdc3271d57cf19ee4b2669acc3bc8cc70357101.zip
Re-enable pdc-web01 in staging only.
-rw-r--r--roles/haproxy/templates/haproxy.cfg7
1 files changed, 5 insertions, 2 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg
index 496f9e799..cc0a1aa18 100644
--- a/roles/haproxy/templates/haproxy.cfg
+++ b/roles/haproxy/templates/haproxy.cfg
@@ -283,11 +283,14 @@ listen openqa 0.0.0.0:10044
listen pdc 0.0.0.0:10045
balance hdr(appserver)
-## pdc-web01 is commented out because we don't currently know how to configure
+{% if env == "staging" %}
+ server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2
+{% else %}
+## pdc-web01 is absent because we don't currently know how to configure
## mod_auth_mellon to work when distributed across more than one app node. It
## expects to be able to share some state between requests in-process. Boo.
- #server pdc-web01 pdc-web01:80 check inter 10s rise 1 fall 2
server pdc-web02 pdc-web02:80 check inter 10s rise 1 fall 2
+{% endif %}
option httpchk GET /rest_api/v1/
timeout server 3600000
timeout connect 3600000