]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mon: honour mon_docker_net_host option
authorSébastien Han <seb@redhat.com>
Wed, 27 Jun 2018 09:23:00 +0000 (11:23 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 27 Jun 2018 21:16:56 +0000 (21:16 +0000)
--net=host was hardcoded in the startup line so even though
mon_docker_net_host was set to False the net option would always be
activated.
mon_docker_net_host is set to True by default so this commit does not
change the behaviour.

Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 322e2de7d27c498a9d89b31b96729200bed56e19)

roles/ceph-mon/templates/ceph-mon.service.j2

index 9fe9d6774d7630087796409a21283948ec08c043..47e97f6e148df74437cea95ac9571264aa0b25cf 100644 (file)
@@ -6,7 +6,7 @@ After=docker.service
 EnvironmentFile=-/etc/environment
 ExecStartPre=-/usr/bin/docker rm ceph-mon-%i
 ExecStartPre=$(command -v mkdir) -p /etc/ceph /var/lib/ceph/mon
-ExecStart=/usr/bin/docker run --rm --name ceph-mon-%i --net=host \
+ExecStart=/usr/bin/docker run --rm --name ceph-mon-%i \
   --memory={{ ceph_mon_docker_memory_limit }} \
 {% if ceph_docker_version.split('.')[0] | version_compare('13', '>=') -%}
   --cpus={{ ceph_mon_docker_cpu_limit }} \