From: Michael Fritch Date: Wed, 12 May 2021 23:27:50 +0000 (-0600) Subject: cephadm: add HAProxy sysctl settings X-Git-Tag: v17.1.0~1901^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=465e7ef243f85db27642b2cd626841e9e4be848e;p=ceph.git cephadm: add HAProxy sysctl settings Signed-off-by: Michael Fritch --- diff --git a/src/cephadm/cephadm b/src/cephadm/cephadm index a9f3d9a6c32a..a0101b9b495b 100755 --- a/src/cephadm/cephadm +++ b/src/cephadm/cephadm @@ -746,6 +746,13 @@ class HAproxy(object): mounts[os.path.join(data_dir, 'haproxy')] = '/var/lib/haproxy' return mounts + @staticmethod + def get_sysctl_settings() -> List[str]: + return [ + '# IP forwarding', + 'net.ipv4.ip_forward = 1', + ] + ################################## @@ -2969,6 +2976,8 @@ def install_sysctl(ctx: CephadmContext, fsid: str, daemon_type: str) -> None: if daemon_type == 'osd': lines = OSD.get_sysctl_settings() + elif daemon_type == 'haproxy': + lines = HAproxy.get_sysctl_settings() elif daemon_type == 'keepalived': lines = Keepalived.get_sysctl_settings()