summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2016-09-01 10:48:19 -0700
committerTim Bielawa <tbielawa@redhat.com>2016-09-01 10:48:21 -0700
commit2ce9018ece4dffe10ecc355adffa6fd2782619d7 (patch)
tree3b1e655cf1075a190108addc393cf9c0b125ea9e /roles
parent55683a581ab891e293c5a34c074c324009f1ba37 (diff)
downloadopenshift-2ce9018ece4dffe10ecc355adffa6fd2782619d7.tar.gz
openshift-2ce9018ece4dffe10ecc355adffa6fd2782619d7.tar.bz2
openshift-2ce9018ece4dffe10ecc355adffa6fd2782619d7.tar.xz
openshift-2ce9018ece4dffe10ecc355adffa6fd2782619d7.zip
Persist net.ipv4.ip_forward sysctl entry for openshift nodes
Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1372388
Diffstat (limited to 'roles')
-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