From fbcf6c40c544613cce1c18ff8c140609bcdb04f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Tue, 8 Feb 2022 12:33:46 +0100 Subject: [PATCH] Blockerbugs: SPlit proxy configuration for stg and prod --- playbooks/include/proxies-reverseproxy.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 45c84e5e4b..508ee09cd1 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -298,12 +298,23 @@ ocp4: true remotepath: /blockerbugs localpath: /blockerbugs - balancer_members: - - "{{ item }}" + balancer_members: "{{ ocp_nodes_stg }}" tags: blockerbugs - with_items: - - "{{ ocp_nodes_stg }}" - - "{{ ocp_nodes }}" + when: env == "staging" + + - role: httpd/reverseproxy + website: qa.fedoraproject.org + destname: blockerbugs + balancer_name: apps-ocp + targettype: openshift + keephost: true + ocp4: true + remotepath: /blockerbugs + localpath: /blockerbugs + balancer_members: "{{ ocp_nodes }}" + tags: blockerbugs + when: env != "staging" + - role: httpd/reverseproxy website: fedoraproject.org