#1137 mote_v2: deploy to prod
Merged 2 years ago by kevin. Opened 2 years ago by darknao.
fedora-infra/ darknao/ansible motev2  into  main

@@ -100,10 +100,12 @@ 

    - role: httpd/reverseproxy

      website: meetbot.fedoraproject.org

      destname: mote

-     #remotepath: /mote/

-     # Talk directly to the app server, not haproxy

-     proxyurl: http://value01

-     when: env != "staging"

+     balancer_name: app-os

+     balancer_members: "{{ (env == 'staging')|ternary(ocp_nodes_stg, ocp_nodes) }}"

+     targettype: openshift

+     ocp4: true

+     keephost: true

+     tags: mote

  

    # The place for the raw originals

    - role: httpd/reverseproxy
@@ -114,15 +116,6 @@ 

      proxyurl: http://value02

      when: env == "staging"

  

-   # The place for the fancy mote view

-   - role: httpd/reverseproxy

-     website: meetbot.fedoraproject.org

-     destname: mote

-     #remotepath: /mote/

-     # Talk directly to the app server, not haproxy

-     proxyurl: http://value02

-     when: env == "staging"

- 

    - role: httpd/reverseproxy

      website: apps.fedoraproject.org

      destname: nuancier

@@ -1,5 +1,5 @@ 

  - name: make the app be real

-   hosts: os_control_stg[0]

+   hosts: os_control[0]:os_control_stg[0]

    user: root

    gather_facts: False

    vars:
@@ -68,6 +68,9 @@ 

      routename: mote

      serviceport: mote-tcp

      servicename: mote

+     host: "meetbot{{ env_suffix }}.fedoraproject.org"

+     annotations:

+       haproxy.router.openshift.io/set-forwarded-headers: append

  

    - role: openshift/start-build

      buildname: mote

@@ -13,8 +13,8 @@ 

    runPolicy: Serial

    source:

      git:

-       ref: cal_theme

-       uri: https://github.com/darknao/mote.git

+       ref: main

+       uri: https://github.com/fedora-infra/mote.git

      type: Git

    strategy:

      type: Docker

And added the set-forwarded-headers: append annotation to route, as the new policy is breaking websocket connections.

Build succeeded.

rebased onto da899bea989166439911ce8c1caad7017e52bacc

2 years ago

Build succeeded.

Build succeeded.

rebased onto 3749d30

2 years ago

rebased onto 3749d30

2 years ago

Pull-Request has been merged by kevin

2 years ago

Build succeeded.