From 7fb516029caeca7f31026a26204290c7d4a385fe Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 28 Sep 2015 16:45:33 +0000 Subject: [PATCH] Staging haproxy/reverseproxy config for autocloud. --- playbooks/include/proxies-reverseproxy.yml | 7 +++++++ roles/haproxy/templates/haproxy.cfg.stg | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 1b16538afb..4ccc818bde 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -260,6 +260,13 @@ remotepath: /koschei proxyurl: "{{ varnish_url }}" + - role: httpd/reverseproxy + website: apps.fedoraproject.org + destname: autocloud + localpath: /autocloud + remotepath: / + proxyurl: http://localhost:10041 + - role: httpd/reverseproxy website: admin.fedoraproject.org destname: yk-val diff --git a/roles/haproxy/templates/haproxy.cfg.stg b/roles/haproxy/templates/haproxy.cfg.stg index 4f3b823faa..d457f7fd8c 100644 --- a/roles/haproxy/templates/haproxy.cfg.stg +++ b/roles/haproxy/templates/haproxy.cfg.stg @@ -179,6 +179,12 @@ listen koschei 0.0.0.0:10040 server koschei01 koschei01:80 check inter 10s rise 1 fall 2 option httpchk GET /koschei/ +listen autocloud 0.0.0.0:10041 + balance hdr(appserver) + server autocloud-web01 autocloud-web01:80 check inter 10s rise 1 fall 2 + server autocloud-web02 autocloud-web02:80 check inter 10s rise 1 fall 2 + option httpchk GET / + # 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