From 4d71482edb224a8bbe31ea0f2e3e2ae7fc2e08b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 7 Feb 2018 15:27:32 +0100 Subject: [PATCH] retrace02.fedoraproject.org as alias for retrace02.qa.fedoraproject.org --- playbooks/include/proxies-reverseproxy.yml | 6 ++++++ roles/haproxy/templates/haproxy.cfg | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index a253e3851..ab1b1c01f 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -653,3 +653,9 @@ remotepath: / localpath: / proxyurl: http://data-analysis01.phx2.fedoraproject.org + + - role: httpd/reverseproxy + website: retrace02.fedoraproject.org + destname: retrace02 + proxyurl: http://localhost:10068 + when: env == "staging" diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 4420927f8..e22430e8f 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -430,6 +430,14 @@ backend retrace-backend balance hdr(appserver) server retrace01 retrace01:80 check inter 10s rise 1 fall 2 +frontend retrace02-frontend + bind 0.0.0.0:10068 + default_backend retrace02-backend + +backend retrace02-backend + balance hdr(appserver) + server retrace02 retrace02:80 check inter 10s rise 1 fall 2 + {% endif %} {% if env == "staging" %} -- 2.14.3