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:
@ -40,13 +40,3 @@
|
||||
- name: restart ceph-mgr
|
||||
shell: "{% if is_coordinator %}sleep {{ 30 * (hostvars[inventory_hostname].ansible_local.host_id|int - 1) }} && systemctl restart ceph-mgr@{{ this_node }}.service{% endif %}"
|
||||
ignore_errors: true
|
||||
|
||||
- name: restart pvcnoded
|
||||
shell: "{% if is_coordinator %}sleep {{ 30 * (hostvars[inventory_hostname].ansible_local.host_id|int - 1) }} &&{% endif %} systemctl restart pvcnoded.service"
|
||||
ignore_errors: true
|
||||
when: bootstrap is not defined
|
||||
|
||||
- name: restart pvcapid
|
||||
shell: "{% if is_coordinator %}sleep {{ 30 * (hostvars[inventory_hostname].ansible_local.host_id|int - 1) }} &&{% endif %} systemctl restart pvcapid.service"
|
||||
ignore_errors: true
|
||||
when: bootstrap is not defined
|
||||
|
Reference in New Issue
Block a user