Give Bodhi grous vars for how many OpenShift pods to run.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
5f616ef1c5
commit
488e718455
3 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue