Skip to content

Commit feffbba

Browse files
committed
cephadm-adopt: ensure /etc/ceph is present on monitoring node
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)
1 parent 8f26939 commit feffbba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

infrastructure-playbooks/cephadm-adopt.yml

+8
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,14 @@
12161216
path: "/etc/ceph/{{ cluster }}.conf"
12171217
register: ceph_config
12181218

1219+
- name: ensure /etc/ceph is present
1220+
file:
1221+
path: /etc/ceph
1222+
state: directory
1223+
owner: "{{ ceph_uid | int if containerized_deployment | bool else 'ceph' }}"
1224+
group: "{{ ceph_uid | int if containerized_deployment | bool else 'ceph' }}"
1225+
mode: "{{ ceph_directories_mode }}"
1226+
12191227
- name: write a ceph.conf with minimal config
12201228
copy:
12211229
dest: "/etc/ceph/{{ cluster }}.conf"

0 commit comments

Comments
 (0)