Add PVC role tasks to update-pvc-daemons

Ensures that configurations are always updated whenever the daemons are.
This will be necessary for 0.9.83 with the fundamental change from
pvcXd.yaml to pvc.conf configuration formats, while also ensuring that
future daemon updates also include any configuration changes that may be
pending in the group_vars.
This commit is contained in:
Joshua Boniface 2023-12-01 01:37:39 -05:00
parent 9d2af41d3f
commit 15fc3261de
1 changed files with 24 additions and 0 deletions

View File

@ -1,4 +1,5 @@
--- ---
# Set the cluster into maintenance mode
- hosts: all - hosts: all
remote_user: deploy remote_user: deploy
become: yes become: yes
@ -15,6 +16,28 @@
run_once: yes run_once: yes
ignore_errors: yes ignore_errors: yes
# Run the PVC daemon role against the system (update pvc.conf)
- hosts: all
remote_user: deploy
become: yes
become_user: root
gather_facts: yes
tasks:
- set_fact:
this_node: "{{ inventory_hostname.split('.')[0] }}"
- set_fact:
is_coordinator: "{% for node in pvc_nodes if node.hostname == this_node %}{{ node.is_coordinator }}{% endfor %}"
- set_fact:
new_host: no
- name: import PVC daemon role
include_role:
name: pvc
tasks_from: pvc/main.yml
# Install the latest PVC packages & restart daemons to apply
- hosts: all - hosts: all
remote_user: deploy remote_user: deploy
become: yes become: yes
@ -92,6 +115,7 @@
become: no become: no
connection: local connection: local
# Set the cluster out of maintenance mode
- hosts: all - hosts: all
remote_user: deploy remote_user: deploy
become: yes become: yes