Skip to content

Commit

Permalink
cephadm-adopt: remove logrotate configuration
Browse files Browse the repository at this point in the history
cephadm uses its own logrotate configuration file so ceph-ansible needs
to remove that custom file during the cephadm-adopt playbook.

Closes: #6944

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit c412412)
  • Loading branch information
dsavineau authored and guits committed Nov 3, 2021
1 parent 19dadc9 commit 041e8b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions infrastructure-playbooks/cephadm-adopt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,18 @@
delegate_to: '{{ groups[mon_group_name][0] }}'
when: ceph_docker_registry_auth | bool

- name: remove logrotate configuration
file:
path: /etc/logrotate.d/ceph
state: absent
when: inventory_hostname in groups.get(mon_group_name, []) or
inventory_hostname in groups.get(osd_group_name, []) or
inventory_hostname in groups.get(mds_group_name, []) or
inventory_hostname in groups.get(rgw_group_name, []) or
inventory_hostname in groups.get(mgr_group_name, []) or
inventory_hostname in groups.get(rbdmirror_group_name, []) or
inventory_hostname in groups.get(iscsi_gw_group_name, [])


- name: store existing rbd mirror peers in monitor config store
hosts: "{{ rbdmirror_group_name|default('rbdmirrors') }}"
Expand Down

0 comments on commit 041e8b0

Please sign in to comment.