diff options
| author | Kevin Fenzi <kevin@scrye.com> | 2017-03-04 19:34:08 +0000 |
|---|---|---|
| committer | Kevin Fenzi <kevin@scrye.com> | 2017-03-04 19:34:08 +0000 |
| commit | 78106fe297d0ae8896f04aabd76d7bc3c35efbf7 (patch) | |
| tree | 79a9d813ea2f2a9362c88d66d8a2ff7d16d5aeef /roles/haproxy | |
| parent | b5c4af2f26237149fcb8b8afc6e6788d722ab47e (diff) | |
| download | ansible-78106fe297d0ae8896f04aabd76d7bc3c35efbf7.tar.gz ansible-78106fe297d0ae8896f04aabd76d7bc3c35efbf7.tar.xz ansible-78106fe297d0ae8896f04aabd76d7bc3c35efbf7.zip | |
modernpaste02 only in prod
Diffstat (limited to 'roles/haproxy')
| -rw-r--r-- | roles/haproxy/templates/haproxy.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 45190705d..dfae9b9dd 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -368,7 +368,9 @@ listen docker-candidate-registry 0.0.0.0:10054 listen modernpaste 0.0.0.0:10055 balance hdr(appserver) server modernpaste01 modernpaste01:80 check inter 10s rise 1 fall 2 +{% if env == "production" %} server modernpaste02 modernpaste02:80 check inter 10s rise 1 fall 2 +{% endif %} option httpchk GET / {% if inventory_hostname_short == 'proxy01' or inventory_hostname_short == 'proxy10' %} |
