From: Dimitri Savineau Date: Mon, 4 May 2020 22:39:05 +0000 (-0400) Subject: ceph-nfs: bind mount ganesha log directory X-Git-Tag: v5.0.0~23 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=02e5167f2ac702810de3bbe2105f812e9d5d91f9;p=ceph-ansible.git ceph-nfs: bind mount ganesha log directory The current ganesha log directory is only present in the container and not bind mount on the host. Signed-off-by: Dimitri Savineau (cherry picked from commit 222fe4abd8771fbb5f3e9c793fcf67123a85e8ab) --- diff --git a/roles/ceph-nfs/templates/ceph-nfs.service.j2 b/roles/ceph-nfs/templates/ceph-nfs.service.j2 index df3bed89d..f00ffaaf5 100644 --- a/roles/ceph-nfs/templates/ceph-nfs.service.j2 +++ b/roles/ceph-nfs/templates/ceph-nfs.service.j2 @@ -10,7 +10,7 @@ After=network.target [Service] EnvironmentFile=-/etc/environment ExecStartPre=-/usr/bin/{{ container_binary }} rm ceph-nfs-%i -ExecStartPre={{ '/bin/mkdir' if ansible_os_family == 'Debian' else '/usr/bin/mkdir' }} -p /etc/ceph /etc/ganesha /var/lib/nfs/ganesha +ExecStartPre={{ '/bin/mkdir' if ansible_os_family == 'Debian' else '/usr/bin/mkdir' }} -p /etc/ceph /etc/ganesha /var/lib/nfs/ganesha /var/log/ganesha ExecStart=/usr/bin/{{ container_binary }} run --rm --net=host \ -v /var/lib/ceph:/var/lib/ceph:z \ -v /etc/ceph:/etc/ceph:z \ @@ -18,6 +18,7 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm --net=host \ -v /etc/ganesha:/etc/ganesha:z \ -v /var/run/ceph:/var/run/ceph:z \ -v /var/log/ceph:/var/log/ceph:z \ + -v /var/log/ganesha:/var/log/ganesha:z \ {% if ceph_nfs_dynamic_exports %} --privileged \ -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \