From 4ff7b8cbebf803f2aee46b6261413750a2814386 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 12 Jan 2016 13:26:56 -0500 Subject: [PATCH] Proxy information for pdc. --- playbooks/include/proxies-reverseproxy.yml | 7 +++++++ roles/haproxy/templates/haproxy.cfg | 6 ++++++ roles/haproxy/templates/haproxy.cfg.stg | 5 +++++ 3 files changed, 18 insertions(+) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 99faec2f1f..3a29df7957 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -288,6 +288,13 @@ remotepath: /statscache proxyurl: http://localhost:10042 + - role: httpd/reverseproxy + website: apps.fedoraproject.org + destname: pdc + localpath: /pdc + remotepath: / + proxyurl: http://localhost:10045 + - role: httpd/reverseproxy website: admin.fedoraproject.org destname: yk-val diff --git a/roles/haproxy/templates/haproxy.cfg b/roles/haproxy/templates/haproxy.cfg index 6ba53ec5ad..00fa1b5f83 100644 --- a/roles/haproxy/templates/haproxy.cfg +++ b/roles/haproxy/templates/haproxy.cfg @@ -222,6 +222,12 @@ listen openqa 0.0.0.0:10044 server openqa01 openqa01:80 check inter 10s rise 1 fall 2 option httpchk GET /group_overview/1 +listen pdc 0.0.0.0:10045 + balance hdr(appserver) + server pdc-web01 check inter 10s rise 1 fall 2 + server pdc-web02 check inter 10s rise 1 fall 2 + option httpchk GET /rest_api/v1/ + # Apache doesn't handle the initial connection here like the other proxy # entries. This proxy also doesn't use the http mode like the others. # stunnel should be sitting on port 9939 (public) and redirecting diff --git a/roles/haproxy/templates/haproxy.cfg.stg b/roles/haproxy/templates/haproxy.cfg.stg index 2d35ce07bc..b55691ddf8 100644 --- a/roles/haproxy/templates/haproxy.cfg.stg +++ b/roles/haproxy/templates/haproxy.cfg.stg @@ -201,6 +201,11 @@ listen openqa 0.0.0.0:10044 server openqa-stg01.qa.fedoraproject.org openqa-stg01.qa.fedoraproject.org:80 check inter 10s rise 1 fall 2 option httpchk GET /group_overview/1 +listen pdc 0.0.0.0:10045 + balance hdr(appserver) + server pdc-web01 check inter 10s rise 1 fall 2 + option httpchk GET /rest_api/v1/ + # Apache doesn't handle the initial connection here like the other proxy # entries. This proxy also doesn't use the http mode like the others. # stunnel should be sitting on port 9939 (public) and redirecting