]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-crash: add support cluster name
authorSeena Fallah <seenafallah@gmail.com>
Sat, 27 Aug 2022 20:26:23 +0000 (22:26 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 7 Sep 2022 14:42:57 +0000 (16:42 +0200)
add cluster name to CEPH_ARGS env var to support custom cluster name
this can change as an arg to ceph-crash when https://github.com/ceph/ceph/pull/47836 released

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
roles/ceph-crash/templates/ceph-crash.service.j2

index 578675d1dbe068f7f41701b4b5d2c36e31fda3a7..f9cfdf530dbe1443f288f101bbc11dbc0153c942 100644 (file)
@@ -20,6 +20,9 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm --name ceph-crash-%i \
 {% endif %}
 --pids-limit={{ 0 if container_binary == 'podman' else -1 }} \
 --net=host \
+{% if cluster != 'ceph' %}
+-e CEPH_ARGS="--cluster {{ cluster }}"
+{% endif %}
 -v /var/lib/ceph:/var/lib/ceph:z \
 -v /etc/localtime:/etc/localtime:ro \
 -v /etc/ceph:/etc/ceph:z \