mote_v2: deploy to prod

This commit is contained in:
Francois Andrieu 2022-06-26 18:02:33 +02:00 committed by kevin
parent d4a57b0404
commit 3749d306a2
3 changed files with 12 additions and 16 deletions

View file

@ -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

View file

@ -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

View file

@ -13,8 +13,8 @@ spec:
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