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 <seenafallah@gmail.com>
(cherry picked from commit d374e634ed)
pull/7304/head
Seena Fallah 2022-08-27 22:26:23 +02:00 committed by Guillaume Abrioux
parent d7bf53a576
commit cda09bf7d8
1 changed files with 3 additions and 0 deletions

View 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 \