From 2ce9018ece4dffe10ecc355adffa6fd2782619d7 Mon Sep 17 00:00:00 2001 From: Tim Bielawa Date: Thu, 1 Sep 2016 10:48:19 -0700 Subject: Persist net.ipv4.ip_forward sysctl entry for openshift nodes Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1372388 --- roles/openshift_node/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roles') diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index dc36b542d..f49e97745 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -55,6 +55,12 @@ - name: Install the systemd units include: systemd_units.yml +# The atomic-openshift-node service will set this parameter on +# startup, but if the network service is restarted this setting is +# lost. Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1372388 +- name: Persist net.ipv4.ip_forward sysctl entry + sysctl: name="net.ipv4.ip_forward" value=1 sysctl_set=yes state=present reload=yes + - name: Start and enable openvswitch docker service service: name=openvswitch.service enabled=yes state=started when: openshift.common.is_containerized | bool and openshift.common.use_openshift_sdn | bool -- cgit v1.2.3