We have differnt vars files for staging and prod, use them

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2019-10-10 12:59:08 +02:00 committed by Pierre-Yves Chibon
parent 116ced3334
commit 426d9b7b63
4 changed files with 6 additions and 13 deletions

View file

@ -15,9 +15,8 @@ testing: False
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
# Fixed Bodhi version
bodhi_version: 4.1.1-1.fc29.infra
# Definining these vars has a number of effects
# 1) mod_wsgi is configured to use the vars for its own setup

View file

@ -1,5 +1,5 @@
---
# Define resources for this group of hosts here.
# Define resources for this group of hosts here.
jobrunner: false
epelmasher: false
@ -13,6 +13,9 @@ num_cpus: 2
# Use the infra-testing repo
testing: True
# Fixed Bodhi version
bodhi_version: 5.0.0-0.beta.1.761b898.fc30.infra
# configure mod_wsgi to use the vars for its own setup
wsgi_procs: 2
wsgi_threads: 2

View file

@ -76,14 +76,6 @@
app: bodhi
template: buildconfig.yml
objectname: buildconfig.yml
bodhi_version: "{{ bodhi_version_staging }}"
when: env == "staging"
- role: openshift/object
app: bodhi
template: buildconfig.yml
objectname: buildconfig.yml
bodhi_version: "{{ bodhi_version_production }}"
when: env == "production"
- role: openshift/start-build
app: bodhi
buildname: bodhi-base

View file

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