Skip to content

Commit

Permalink
cephadm-adopt: ensure /etc/ceph is present on monitoring node
Browse files Browse the repository at this point in the history
When deploying the monitoring stack on a dedicated node, the directory
`/etc/ceph` has never been created. Therefore, the play for adopting the
monitoring stack fails because it can't write the minimal config file.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2029697

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 7ece59b)
  • Loading branch information
guits committed Dec 7, 2021
1 parent b16d9fc commit 8a32576
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions infrastructure-playbooks/cephadm-adopt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,14 @@
path: "/etc/ceph/{{ cluster }}.conf"
register: ceph_config

- name: ensure /etc/ceph is present
file:
path: /etc/ceph
state: directory
owner: "{{ ceph_uid | int if containerized_deployment | bool else 'ceph' }}"
group: "{{ ceph_uid | int if containerized_deployment | bool else 'ceph' }}"
mode: "{{ ceph_directories_mode }}"

- name: write a ceph.conf with minimal config
copy:
dest: "/etc/ceph/{{ cluster }}.conf"
Expand Down

0 comments on commit 8a32576

Please sign in to comment.