Become primary and apply migrations on first node

This commit is contained in:
Joshua Boniface 2024-02-12 11:51:03 -05:00
parent 4a5727e671
commit e326639e18
1 changed files with 9 additions and 1 deletions

View File

@ -130,7 +130,15 @@
- pvcworkerd
- pvchealthd
- name: unset PVC maintenance mode
- name: become primary on first node
command: pvc node primary --wait
run_once: yes
- name: apply database migrations on first node (safe upgrades prevented this in dpkg)
command: /usr/share/pvc/pvc-api-db-upgrade
run_once: yes
- name: unset PVC maintenance mode on first node
command: pvc cluster maintenance off
run_once: yes