Bodhi's OS playbook always scales up at the end.
Also, use the OS master group vars instead of host names. Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
07437cbf7a
commit
a9e76aa4c8
2 changed files with 10 additions and 2 deletions
|
@ -62,7 +62,7 @@
|
|||
register: latest_migration_version
|
||||
|
||||
- name: Stop the front end if there are migrations to run
|
||||
hosts: os-master01.stg.phx2.fedoraproject.org:os-master01.phx2.fedoraproject.org
|
||||
hosts: os-masters[0]:os-masters-stg[0]
|
||||
user: root
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
@ -123,7 +123,7 @@
|
|||
ignore_errors: true
|
||||
|
||||
- name: restart the frontend
|
||||
hosts: os-master01.stg.phx2.fedoraproject.org:os-master01.phx2.fedoraproject.org
|
||||
hosts: os-masters[0]:os-masters-stg[0]
|
||||
user: root
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
|
|
@ -83,3 +83,11 @@
|
|||
- role: openshift/rollout
|
||||
app: bodhi
|
||||
dcname: bodhi-web
|
||||
|
||||
post_tasks:
|
||||
- name: Scale up pods
|
||||
command: oc -n bodhi scale dc/bodhi-web --replicas={{ groupvars['bodhi2']['openshift_pods'] }}
|
||||
when: env != "staging"
|
||||
- name: Scale up pods
|
||||
command: oc -n bodhi scale dc/bodhi-web --replicas={{ groupvars['bodhi2-stg']['openshift_pods'] }}
|
||||
when: env == "staging"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue