Skip to content

Commit

Permalink
Keep chrony installed when purging a cluster
Browse files Browse the repository at this point in the history
Chrony is mandatory on a ceph node but could be
already present before installing Ceph.
At Ceph uninstallation, we will keep it installed but this
behavior can be changed by changing the "keep_chrony_installed"
variable.

Fixes: #239

Signed-off-by: Teoman ONAY <[email protected]>
  • Loading branch information
asm0deuz committed Nov 24, 2023
1 parent badf6b3 commit bb2c125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ceph_defaults/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ ceph_client_pkgs:
- chrony
- ceph-common
client_group: clients
keep_chrony_installed: true
2 changes: 1 addition & 1 deletion cephadm-purge-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@

- name: remove ceph packages
package:
name: "{{ 'ceph-common' if group_names == [client_group] else ceph_pkgs | unique }}"
name: "{{ 'ceph-common' if group_names == [client_group] else (keep_chrony_installed | ternary(ceph_pkgs | difference('chrony'), ceph_pkgs)) | unique }}"
state: absent
register: result
until: result is succeeded

0 comments on commit bb2c125

Please sign in to comment.