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
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
servicename: bodhi-web
|
||||
- role: openshift/object
|
||||
app: bodhi
|
||||
file: deploymentconfig.yml
|
||||
template: deploymentconfig.yml
|
||||
objectname: deploymentconfig.yml
|
||||
- role: openshift/rollout
|
||||
app: bodhi
|
||||
|
|
|
@ -8,7 +8,11 @@ items:
|
|||
service: web
|
||||
name: bodhi-web
|
||||
spec:
|
||||
replicas: 2
|
||||
{% if env == "staging" %}
|
||||
replicas: {{ groupvars['bodhi2-stg']['openshift_pods'] }}
|
||||
{% else %}
|
||||
replicas: {{ groupvars['bodhi2']['openshift_pods'] }}
|
||||
{% endif %}
|
||||
selector:
|
||||
deploymentconfig: bodhi-web
|
||||
strategy:
|
Loading…
Add table
Add a link
Reference in a new issue