Use /etc/bodhi/alembic.ini on production upgrades.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2017-06-20 22:42:48 +00:00
parent 6e6239051a
commit 959b34e8ae

View file

@ -90,17 +90,11 @@
- name: Stop the fedmsg-hub backend
service: name="fedmsg-hub" state=stopped
- name: Upgrade the database
command: /usr/bin/alembic -c /usr/share/bodhi/alembic.ini upgrade head
args:
chdir: /usr/share/bodhi/
when: inventory_hostname.startswith(('bodhi-backend01.phx2',))
- name: Upgrade the database
command: /usr/bin/alembic -c /etc/bodhi/alembic.ini upgrade head
args:
chdir: /usr/share/bodhi/
when: inventory_hostname.startswith(('bodhi-backend01.stg.phx2',))
when: inventory_hostname.startswith(('bodhi-backend01.phx2', 'bodhi-backend01.stg.phx2'))
- name: And... start the backend again
service: name="fedmsg-hub" state=started