Add immutability to PVC subrole
1. Remove the obsolete pvc-vacuum script install. 2. Remove notifies when modifying configs; we do not want to restart the daemons uncontrolled. 3. Add bootstrap check to package installs so they only happen on bootstrap. This ensures this part of the role, on re-runs, will *only* update configs and not actually touch the running daemon. This makes it safe to run before a oneshot/update-pvc-daemons.yml playbook run.
This commit is contained in:
@ -10,13 +10,12 @@
|
||||
- ethtool
|
||||
- jq
|
||||
state: latest
|
||||
when: bootstrap is defined and bootstrap
|
||||
|
||||
- name: install pvc node daemon configuration
|
||||
template:
|
||||
src: pvc/{{ item }}.j2
|
||||
dest: /etc/pvc/{{ item }}
|
||||
notify:
|
||||
- restart pvcnoded
|
||||
with_items:
|
||||
- pvcnoded.yaml
|
||||
|
||||
@ -24,8 +23,6 @@
|
||||
template:
|
||||
src: pvc/{{ item }}.j2
|
||||
dest: /etc/pvc/{{ item }}
|
||||
notify:
|
||||
- restart pvcapid
|
||||
with_items:
|
||||
- pvcapid.yaml
|
||||
|
||||
@ -55,12 +52,6 @@
|
||||
run_once: yes
|
||||
when: bootstrap is defined and bootstrap and is_coordinator
|
||||
|
||||
- name: install daily vacuum script
|
||||
template:
|
||||
src: pvc/pvc-vacuum.j2
|
||||
dest: /etc/cron.daily/pvc-vacuum
|
||||
mode: 0755
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
- name: ensure services are started and running
|
||||
|
Reference in New Issue
Block a user