From 932ab8863db0f0aab4ada82117a06885cb841508 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 16 Jan 2015 11:23:14 +0100 Subject: [PATCH] Adjust the proxy and varnish settings for mirrormanager2 --- roles/haproxy/files/haproxy.cfg.stg | 5 +++++ roles/varnish/files/proxy.vcl.stg | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/roles/haproxy/files/haproxy.cfg.stg b/roles/haproxy/files/haproxy.cfg.stg index 280aac5fd3..a083f416d0 100644 --- a/roles/haproxy/files/haproxy.cfg.stg +++ b/roles/haproxy/files/haproxy.cfg.stg @@ -169,6 +169,11 @@ listen kerneltest 0.0.0.0:10038 server kerneltest01 kerneltest01:80 check inter 10s rise 1 fall 2 option httpchk GET /kerneltest +listen mirrormanager2 0.0.0.0:10039 + balance hdr(appserver) + server mm-frontend01 mm-frontend01:80 check inter 60s rise 2 fall 3 + option httpchk GET /mirrormanager2 + # 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/varnish/files/proxy.vcl.stg b/roles/varnish/files/proxy.vcl.stg index 6d6da14284..be76aed128 100644 --- a/roles/varnish/files/proxy.vcl.stg +++ b/roles/varnish/files/proxy.vcl.stg @@ -118,6 +118,12 @@ backend paste { .port = "10027"; } +backend mirrormanager2 { + .host = "localhost"; + .port = "10039"; +} + + #acl purge { # "192.168.1.3"; # "192.168.1.4"; @@ -171,6 +177,9 @@ sub vcl_recv { if (req.url ~ "^/mirrormanager/") { set req.backend_hint = mirrormanager; } + if (req.url ~ "^/mirrormanager2/") { + set req.backend_hint = mirrormanager2; + } if (req.url ~ "^/updates/") { set req.backend_hint = bodhi; }