From 0a5758a9186bff644c4b3fb819f33136a7897c49 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 13 Oct 2016 11:21:46 +0000 Subject: [PATCH] Add IPA to proxies Signed-off-by: Patrick Uiterwijk --- playbooks/include/proxies-reverseproxy.yml | 9 +++++++++ roles/haproxy/templates/haproxy.cfg | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index f5406f7090..556f470584 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -178,6 +178,15 @@ website: id.fedoraproject.org destname: id proxyurl: http://localhost:10020 + when: env != "staging" + + - role: httpd/reverseproxy + website: id.fedoraproject.org + destname: kdcproxy + remotepath: /KdcProxy + localpath: /KdcProxy + proxyurl: http://localhost:10053 + when: env != "staging" - role: httpd/reverseproxy website: apps.fedoraproject.org diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 96b89d9aab..ce16e07cbf 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -325,14 +325,14 @@ listen fas3 0.0.0.0:10052 option httpchk GET /fas3/ {% endif %} -{% if env == "staging" %} listen ipa 0.0.0.0:10053 balance hdr(appserver) server ipa01 ipa01:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem - option httpchk GET / - +{% if env != "staging" %} + server ipa02 ipa02:443 check inter 10s rise 1 fall 2 ssl verify required ca-file /etc/haproxy/ipa.pem {% endif %} + option httpchk GET / listen docker-candidate-registry 0.0.0.0:10054 balance hdr(appserver)