Make the Bodhi versions more widely available

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2019-10-10 12:49:25 +02:00 committed by Pierre-Yves Chibon
parent a818d432ef
commit 116ced3334
3 changed files with 8 additions and 3 deletions

View file

@ -15,6 +15,10 @@ testing: False
host_group: bodhi2 host_group: bodhi2
# Fixed Bodhi versions
bodhi_version_staging: 5.0.0-0.beta.1.761b898.fc30.infra
bodhi_version_production: 4.1.1-1.fc29.infra
# Definining these vars has a number of effects # Definining these vars has a number of effects
# 1) mod_wsgi is configured to use the vars for its own setup # 1) mod_wsgi is configured to use the vars for its own setup
# 2) iptables opens enough ports for all threads for fedmsg # 2) iptables opens enough ports for all threads for fedmsg

View file

@ -76,13 +76,13 @@
app: bodhi app: bodhi
template: buildconfig.yml template: buildconfig.yml
objectname: buildconfig.yml objectname: buildconfig.yml
bodhi_version: 5.0.0-0.beta.1.761b898.fc30.infra bodhi_version: "{{ bodhi_version_staging }}"
when: env == "staging" when: env == "staging"
- role: openshift/object - role: openshift/object
app: bodhi app: bodhi
template: buildconfig.yml template: buildconfig.yml
objectname: buildconfig.yml objectname: buildconfig.yml
bodhi_version: 4.1.1-1.fc29.infra bodhi_version: "{{ bodhi_version_production }}"
when: env == "production" when: env == "production"
- role: openshift/start-build - role: openshift/start-build
app: bodhi app: bodhi

View file

@ -1,4 +1,5 @@
{%- macro load_file(filename) %}{% include filename %}{%- endmacro -%} {%- macro load_file(filename) %}{% include filename %}{%- endmacro -%}
{%- set bodhi_version = (env == 'production')|ternary(bodhi_version_production, bodhi_version_staging) -%}
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap