Update the pagure upgrade playbook to make it up to date

This commit is contained in:
Pierre-Yves Chibon 2017-06-01 15:20:26 +02:00
parent 01d25e6f95
commit 07d7e2e2d1

View file

@ -39,11 +39,6 @@
update_cache=yes
when: testing
- name: Create new tables in the database
command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py
environment:
PAGURE_CONFIG: /etc/pagure/pagure.cfg
- name: Upgrade the database
command: /usr/bin/alembic -c /etc/pagure/alembic.ini upgrade head
args:
@ -51,12 +46,20 @@
environment:
PAGURE_CONFIG: /etc/pagure/pagure.cfg
- name: call createdb
command: /usr/bin/python2 /usr/share/pagure/pagure_createdb.py
environment:
PAGURE_CONFIG: /etc/pagure/pagure.cfg
post_tasks:
- service: name="httpd" state=restarted
- service: name="pagure_ev" state=restarted
- service: name="pagure_ci" state=restarted
- service: name="pagure_webhook" state=restarted
- service: name="pagure_milter" state=restarted
- service: name="pagure_worker" state=restarted
- service: name="pagure_logcom" state=restarted
- service: name="pagure_loadjson" state=restarted
- name: tell nagios to unshush w.r.t. the frontend
nagios:
action=unsilence