From: Seena Fallah Date: Sat, 27 Aug 2022 20:26:23 +0000 (+0200) Subject: ceph-crash: add support cluster name X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d374e634edbb55cc1012308dff848a42a01fb012;p=ceph-ansible.git ceph-crash: add support cluster name 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 --- diff --git a/roles/ceph-crash/templates/ceph-crash.service.j2 b/roles/ceph-crash/templates/ceph-crash.service.j2 index 578675d1d..f9cfdf530 100644 --- a/roles/ceph-crash/templates/ceph-crash.service.j2 +++ b/roles/ceph-crash/templates/ceph-crash.service.j2 @@ -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 \