Give Bodhi grous vars for how many OpenShift pods to run.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2018-05-17 17:40:30 +00:00
parent 5f616ef1c5
commit 488e718455
3 changed files with 11 additions and 4 deletions

View file

@ -134,8 +134,11 @@
tasks:
- name: Scale up pods
command: oc -n bodhi scale dc/bodhi-web --replicas={{ openshift_pods }}
when: migrations
command: oc -n bodhi scale dc/bodhi-web --replicas={{ groupvars['bodhi2']['openshift_pods'] }}
when: migrations and env != "staging"
- name: Scale up pods
command: oc -n bodhi scale dc/bodhi-web --replicas={{ groupvars['bodhi2-stg']['openshift_pods'] }}
when: migrations and env == "staging"
post_tasks:
- name: tell nagios to unshush w.r.t. the frontend