update bodhi to openshift4 and use openid connect
Signed-off-by: Mark O Brien <markobri@redhat.com>
This commit is contained in:
parent
353979f9ff
commit
fcd8d0c144
5 changed files with 5 additions and 18 deletions
|
@ -341,10 +341,10 @@
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
website: bodhi.fedoraproject.org
|
website: bodhi.fedoraproject.org
|
||||||
destname: bodhi
|
destname: bodhi
|
||||||
balancer_name: app-os
|
balancer_name: apps-ocp
|
||||||
targettype: openshift
|
targettype: openshift
|
||||||
balancer_members: "{{ (env == 'staging')|ternary(openshift_nodes_stg, openshift_nodes) }}"
|
balancer_members: "{{ocp_nodes}}"
|
||||||
ocp4: false
|
ocp4: true
|
||||||
keephost: true
|
keephost: true
|
||||||
tags: bodhi
|
tags: bodhi
|
||||||
when: env != "staging"
|
when: env != "staging"
|
||||||
|
@ -603,7 +603,7 @@
|
||||||
balancer_name: resultsdb
|
balancer_name: resultsdb
|
||||||
balancer_members: ['resultsdb01.vpn.fedoraproject.org:80']
|
balancer_members: ['resultsdb01.vpn.fedoraproject.org:80']
|
||||||
http_not_https_yes_this_is_insecure_and_i_feel_bad: true
|
http_not_https_yes_this_is_insecure_and_i_feel_bad: true
|
||||||
|
|
||||||
- role: httpd/reverseproxy
|
- role: httpd/reverseproxy
|
||||||
website: taskotron.fedoraproject.org
|
website: taskotron.fedoraproject.org
|
||||||
destname: taskotron-resultsdbapi
|
destname: taskotron-resultsdbapi
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- name: make the app be real
|
- name: make the app be real
|
||||||
hosts: os_masters[0]:os_control_stg[0]
|
hosts: os_control[0]:os_control_stg[0]
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
|
@ -92,7 +92,6 @@
|
||||||
app: bodhi
|
app: bodhi
|
||||||
template: imagestreams-tagged.yml
|
template: imagestreams-tagged.yml
|
||||||
objectname: imagestreams.yml
|
objectname: imagestreams.yml
|
||||||
when: env == "staging"
|
|
||||||
- role: openshift/imagestream
|
- role: openshift/imagestream
|
||||||
app: bodhi
|
app: bodhi
|
||||||
imagename: bodhi-base
|
imagename: bodhi-base
|
||||||
|
|
|
@ -56,11 +56,7 @@ TypesConfig /etc/mime.types
|
||||||
AddDefaultCharset UTF-8
|
AddDefaultCharset UTF-8
|
||||||
CoreDumpDirectory /tmp
|
CoreDumpDirectory /tmp
|
||||||
Alias /docs /usr/share/doc/bodhi-docs/html/
|
Alias /docs /usr/share/doc/bodhi-docs/html/
|
||||||
{% if env == "staging" %}
|
|
||||||
Alias /static/v{{ bodhi_version.split('-')[0] }} /srv/bodhi/bodhi/server/static/
|
Alias /static/v{{ bodhi_version.split('-')[0] }} /srv/bodhi/bodhi/server/static/
|
||||||
{% else %}
|
|
||||||
Alias /static/v{{ bodhi_version.split('-')[0] }} /usr/lib/python3.8/site-packages/bodhi/server/static/
|
|
||||||
{% endif %}
|
|
||||||
WSGIDaemonProcess bodhi display-name=bodhi processes=4 threads=1 maximum-requests=500 home=/httpdir request-timeout=90
|
WSGIDaemonProcess bodhi display-name=bodhi processes=4 threads=1 maximum-requests=500 home=/httpdir request-timeout=90
|
||||||
WSGIApplicationGroup %{GLOBAL}
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
WSGISocketPrefix run/wsgi
|
WSGISocketPrefix run/wsgi
|
||||||
|
@ -68,6 +64,4 @@ WSGIRestrictStdout Off
|
||||||
WSGIRestrictSignal Off
|
WSGIRestrictSignal Off
|
||||||
WSGIPythonOptimize 1
|
WSGIPythonOptimize 1
|
||||||
WSGIScriptAlias / /usr/share/bodhi/bodhi.wsgi
|
WSGIScriptAlias / /usr/share/bodhi/bodhi.wsgi
|
||||||
{% if env == "staging" %}
|
|
||||||
WSGIPassAuthorization On
|
WSGIPassAuthorization On
|
||||||
{% endif %}
|
|
||||||
|
|
|
@ -662,12 +662,10 @@ openid.url = https://id{{env_suffix}}.fedoraproject.org/
|
||||||
openid_template = {username}.id{{env_suffix}}.fedoraproject.org
|
openid_template = {username}.id{{env_suffix}}.fedoraproject.org
|
||||||
openid.sreg_required = email nickname
|
openid.sreg_required = email nickname
|
||||||
|
|
||||||
{% if env == 'staging' %}
|
|
||||||
# OIDC (OpenID Connect)
|
# OIDC (OpenID Connect)
|
||||||
oidc.fedora.client_id = bodhi
|
oidc.fedora.client_id = bodhi
|
||||||
oidc.fedora.client_secret = {{ (env == 'staging')|ternary(bodhi2_oidc_client_secret_staging, bodhi2_oidc_client_secret) }}
|
oidc.fedora.client_secret = {{ (env == 'staging')|ternary(bodhi2_oidc_client_secret_staging, bodhi2_oidc_client_secret) }}
|
||||||
oidc.fedora.server_metadata_url = http://id{{ env_suffix }}.fedoraproject.org/openidc/.well-known/openid-configuration
|
oidc.fedora.server_metadata_url = http://id{{ env_suffix }}.fedoraproject.org/openidc/.well-known/openid-configuration
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
# CORS allowed origins for cornice services
|
# CORS allowed origins for cornice services
|
||||||
|
|
|
@ -36,9 +36,7 @@ items:
|
||||||
labels:
|
labels:
|
||||||
app: bodhi-web
|
app: bodhi-web
|
||||||
deploymentconfig: bodhi-web
|
deploymentconfig: bodhi-web
|
||||||
{% if env == "staging" %}
|
|
||||||
monitoring-key: cpe
|
monitoring-key: cpe
|
||||||
{% endif %}
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: bodhi-web
|
- name: bodhi-web
|
||||||
|
@ -47,9 +45,7 @@ items:
|
||||||
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-k", "gthread", "--threads", "2", "--preload", "--log-file=-"]
|
args: ["--paste", "/etc/bodhi/production.ini", "-b", "0.0.0.0:8080", "-w", "4", "--log-level", "DEBUG", "-k", "gthread", "--threads", "2", "--preload", "--log-file=-"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
{% if env == "staging" %}
|
|
||||||
name: web
|
name: web
|
||||||
{% endif %}
|
|
||||||
resources: {}
|
resources: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue