Use new in-built database migrations in API
This commit is contained in:
@ -89,8 +89,5 @@
|
||||
- name: import DNS database schema
|
||||
command: "psql -U {{ pvc_dns_database_user }} -f /etc/postgresql/powerdns-schema.sql {{ pvc_dns_database_name }}"
|
||||
|
||||
- name: import Provisioner database schema
|
||||
command: "psql -U {{ pvc_prov_database_user }} -f /etc/postgresql/provisioner-schema.sql {{ pvc_prov_database_name }}"
|
||||
|
||||
become: yes
|
||||
become_user: postgres
|
||||
|
@ -69,7 +69,6 @@
|
||||
mode: 0640
|
||||
with_items:
|
||||
- { src: "patroni/powerdns-schema.sql", dest: "/etc/postgresql/powerdns-schema.sql" }
|
||||
- { src: "patroni/provisioner-schema.sql", dest: "/etc/postgresql/provisioner-schema.sql" }
|
||||
|
||||
- include: patroni/bootstrap.yml
|
||||
run_once: yes
|
||||
|
@ -46,9 +46,13 @@
|
||||
- pdns.service
|
||||
- dnsmasq.service
|
||||
|
||||
- name: prepare Patroni database migrations (on all hosts)
|
||||
command: /usr/share/pvc/pvc-api-db-init
|
||||
when: bootstrap is defined and bootstrap and is_coordinator
|
||||
|
||||
- include: pvc/bootstrap.yml
|
||||
when: bootstrap is defined and bootstrap
|
||||
run_once: yes
|
||||
when: bootstrap is defined and bootstrap and is_coordinator
|
||||
|
||||
- name: enable daemon services but don't start them
|
||||
service:
|
||||
|
Reference in New Issue
Block a user