diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index 9a14756ed5..fa19b2dca9 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -200,6 +200,18 @@ targettype: openshift keephost: true tags: fasjson + when: env != "staging" + + - role: httpd/reverseproxy + website: "fasjson{{ env_suffix }}.fedoraproject.org" + destname: fasjson + balancer_name: apps-ocp + balancer_members: "{{ (env == 'staging')|ternary(ocp_nodes_stg, ocp_nodes) }}" + targettype: openshift + keephost: true + ocp4: true + tags: fasjson + when: env == "staging" - role: httpd/reverseproxy website: "id{{ env_suffix }}.fedoraproject.org" diff --git a/playbooks/openshift-apps/fasjson.yml b/playbooks/openshift-apps/fasjson.yml index f775269205..2ff93693b1 100644 --- a/playbooks/openshift-apps/fasjson.yml +++ b/playbooks/openshift-apps/fasjson.yml @@ -1,5 +1,5 @@ - name: make the app be real - hosts: os_masters[0]:os_masters_stg[0] + hosts: os_masters[0]:os_control_stg[0] user: root gather_facts: False @@ -9,6 +9,7 @@ - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml vars: + - ocp4: true roles: - role: openshift/project