Import default modules after the DB migration when MBS is upgraded
This commit is contained in:
parent
784d2f6d98
commit
6585d7a7ed
2 changed files with 9 additions and 0 deletions
|
@ -92,6 +92,8 @@
|
|||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
handlers:
|
||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||
vars:
|
||||
mbs_import_default_modules: False
|
||||
|
||||
pre_tasks:
|
||||
- name: tell nagios to shush w.r.t. the backend
|
||||
|
@ -114,6 +116,11 @@
|
|||
- name: And... start the backend again
|
||||
service: name="fedmsg-hub" state=started
|
||||
|
||||
- name: Import the default-modules
|
||||
command: /usr/bin/mbs-manager import_module /etc/module-build-service/default-modules/{{ item | basename }}
|
||||
with_fileglob:
|
||||
- default-modules.{{ env }}/*.yaml
|
||||
|
||||
post_tasks:
|
||||
- name: tell nagios to unshush w.r.t. the backend
|
||||
nagios: action=unsilence service=host host={{ inventory_hostname_short }}{{ env_suffix }}
|
||||
|
|
|
@ -98,4 +98,6 @@
|
|||
command: /usr/bin/mbs-manager import_module /etc/module-build-service/default-modules/{{ item | basename }}
|
||||
with_fileglob:
|
||||
- default-modules.{{ env }}/*.yaml
|
||||
when: mbs_import_default_modules | default(True)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue