vars {} makes it a global variable. Let's not do that

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2018-04-16 21:30:17 +00:00
parent 0baf6b2edf
commit 3acfa5b4de

View file

@ -38,11 +38,27 @@
key: fedmsg-bodhi.crt key: fedmsg-bodhi.crt
privatefile: fedmsg-certs/keys/bodhi-bodhi03.fedoraproject.org.crt privatefile: fedmsg-certs/keys/bodhi-bodhi03.fedoraproject.org.crt
when: env != "staging" when: env != "staging"
- { role: openshift/object, vars: {app: bodhi, file: imagestream.yml }} - role: openshift/object
- { role: openshift/object, vars: {app: bodhi, template: buildconfig.yml }} app: bodhi
- { role: openshift/start-build, vars: {app: bodhi, name: bodhi-web }} file: imagestream.yml
- { role: openshift/object, vars: {app: bodhi, template_fullpath: "{{roles_path}}/bodhi2/base/templates/configmap.yml" }} - role: openshift/object
- { role: openshift/object, vars: {app: bodhi, file: service.yml }} app: bodhi
- { role: openshift/object, vars: {app: bodhi, template: route.yml }} template: buildconfig.yml
- { role: openshift/object, vars: {app: bodhi, file: deploymentconfig.yml }} - role: openshift/start-build
- { role: openshift/rollout, vars: {app: bodhi, name: bodhi-web }} app: bodhi
name: bodhi-web
- role: openshift/object
app: bodhi
template_fullpath: "{{roles_path}}/bodhi2/base/templates/configmap.yml"
- role: openshift/object
app: bodhi
file: service.yml
- role: openshift/object
app: bodhi
template: route.yml
- role: openshift/object
app: bodhi
file: deploymentconfig.yml
- role: openshift/rollout
app: bodhi
name: bodhi-web