diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 904428a116..e057f52088 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -215,6 +215,14 @@ localpath: /updates proxyurl: http://localhost:10009 + - role: httpd/reverseproxy + website: admin.fedoraproject.org + destname: bodhi + remotepath: /updates + localpath: /updates2 + proxyurl: http://localhost:10010 + when: env == "staging" + - role: httpd/reverseproxy website: admin.fedoraproject.org destname: mirrormanager diff --git a/roles/haproxy/templates/haproxy.cfg.stg b/roles/haproxy/templates/haproxy.cfg.stg index 6acc0fd3e7..f9e83e45d1 100644 --- a/roles/haproxy/templates/haproxy.cfg.stg +++ b/roles/haproxy/templates/haproxy.cfg.stg @@ -72,6 +72,11 @@ listen bodhi 0.0.0.0:10009 server bodhi01 bodhi01:80 check inter 20s rise 2 fall 3 option httpchk GET /updates/nagios +listen bodhi2 0.0.0.0:10010 + balance hdr(appserver) + server bodhi02 bodhi02:80 check inter 20s rise 2 fall 3 + option httpchk GET /updates/nagios + listen freemedia 0.0.0.0:10011 balance hdr(appserver) server sundries01 sundries01:80 check inter 60s rise 2 fall 3