Allow deb migrations to be installed

This commit is contained in:
Joshua Boniface 2020-02-15 23:30:11 -05:00
parent eaf9467b75
commit a79aef90fa
2 changed files with 2 additions and 13 deletions

View File

@ -3,8 +3,8 @@
command: ip address add {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }} command: ip address add {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }}
ignore_errors: yes ignore_errors: yes
- name: prepare database migrations - name: apply database migrations
command: /usr/share/pvc/pvc-api-db-init command: /usr/share/pvc/pvc-api-db-upgrade
- name: start the API daemon - name: start the API daemon
service: service:
@ -39,9 +39,3 @@
- name: remove floating IP address to upstream interface - name: remove floating IP address to upstream interface
command: ip address delete {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }} command: ip address delete {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }} dev {{ pvc_upstream_device }}
ignore_errors: yes ignore_errors: yes
- name: collect bootstrapped database migration files into the role
fetch:
src: /usr/share/pvc/migrations
dest: roles/pvc/files/pvc/{{ hostvars[inventory_hostname].group_names[0] }}/
flat: no

View File

@ -50,11 +50,6 @@
run_once: yes run_once: yes
when: bootstrap is defined and bootstrap and is_coordinator when: bootstrap is defined and bootstrap and is_coordinator
- name: install bootstrap database migrations across all hosts
copy:
src: pvc/{{ hostvars[inventory_hostname].group_names[0] }}/migrations
dest: /usr/share/pvc/
- name: enable daemon services but don't start them - name: enable daemon services but don't start them
service: service:
name: "{{ item }}" name: "{{ item }}"