Make the fmn upgrade playbook work with f26 and fmn-2.0

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
Jeremy Cline 2017-10-31 20:30:57 +00:00
parent a746737520
commit 0d1517e203

View file

@ -14,14 +14,12 @@
- name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%} - name: clean all metadata {%if testing%}(with infrastructure-testing on){%endif%}
command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%} command: yum clean all {%if testing%} --enablerepo=infrastructure-tags-stg {%endif%}
check_mode: no check_mode: no
when: env != "staging"
- name: yum update FMN packages from main repo - name: yum update FMN packages from main repo
yum: name="python-fmn" state=latest yum: name="python-fmn" state=latest
when: not testing when: env != "staging"
- name: yum update FMN packages from testing repo - name: Update FMN packages
yum: pkg=python-fmn state=latest enablerepo=infrastructure-tags-stg package: name=python-fmn state=latest
when: testing
- name: yum update FMN packages from testing repo
yum: pkg=python-fmn state=latest enablerepo=epel-testing
when: env == "staging" when: env == "staging"
- name: verify the frontend and stop it - name: verify the frontend and stop it
@ -78,6 +76,10 @@
- fmn-worker@3 - fmn-worker@3
- fmn-worker@4 - fmn-worker@4
- name: Stop the celerybeat service
service: name=fmn-celerybeat state=stopped
when: env == "staging"
- name: Upgrade the database - name: Upgrade the database
command: /usr/bin/alembic -c /usr/share/fmn/alembic.ini upgrade head command: /usr/bin/alembic -c /usr/share/fmn/alembic.ini upgrade head
args: args:
@ -92,6 +94,10 @@
- fmn-worker@3 - fmn-worker@3
- fmn-worker@4 - fmn-worker@4
- name: Re-start the celerybeat service
service: name=fmn-celerybeat state=started
when: env == "staging"
- name: And... start the backend again - name: And... start the backend again
service: name="fedmsg-hub" state=started service: name="fedmsg-hub" state=started