summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-09-01 14:43:44 -0400
committerGitHub <noreply@github.com>2016-09-01 14:43:44 -0400
commitadd2562e523c4211b290e480fc66e0ff94f33f37 (patch)
tree70db7baea3dedd2550ae6de94b1ba1d369bf983d
parent43728fd16e0cd2b295a7b3f5e117b6bfa70cb141 (diff)
parent2ce9018ece4dffe10ecc355adffa6fd2782619d7 (diff)
downloadopenshift-add2562e523c4211b290e480fc66e0ff94f33f37.tar.gz
openshift-add2562e523c4211b290e480fc66e0ff94f33f37.tar.bz2
openshift-add2562e523c4211b290e480fc66e0ff94f33f37.tar.xz
openshift-add2562e523c4211b290e480fc66e0ff94f33f37.zip
Merge pull request #2396 from tbielawa/BZ1372388
Persist net.ipv4.ip_forward sysctl entry for openshift nodes
-rw-r--r--roles/openshift_node/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
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