Просмотр исходного кода

Merge pull request #2396 from tbielawa/BZ1372388

Persist net.ipv4.ip_forward sysctl entry for openshift nodes
Scott Dodson 8 лет назад
Родитель
Сommit
add2562e52
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      roles/openshift_node/tasks/main.yml

+ 6 - 0
roles/openshift_node/tasks/main.yml

@@ -55,6 +55,12 @@
 - name: Install the systemd units
 - name: Install the systemd units
   include: systemd_units.yml
   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
 - name: Start and enable openvswitch docker service
   service: name=openvswitch.service enabled=yes state=started
   service: name=openvswitch.service enabled=yes state=started
   when: openshift.common.is_containerized | bool and openshift.common.use_openshift_sdn | bool
   when: openshift.common.is_containerized | bool and openshift.common.use_openshift_sdn | bool