]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Setting net.ipv4.conf.all.promote_secondaries = 1 at syslog
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 7 Aug 2012 23:46:58 +0000 (20:46 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 7 Aug 2012 23:46:58 +0000 (20:46 -0300)
manifests/subsystems/sysctl.pp

index 28f140bc5781cfbbecc632ee5412f6b8b820ed73..5e6dec76ff0a31875a23ec17c5c13cf49f29b17c 100644 (file)
@@ -9,8 +9,17 @@ class sysctl {
     content => "vm.mmap_min_addr = 4096\n",
   }
 
+  # see http://www.linux-vserver.org/Frequently_Asked_Questions
+  file { "/etc/sysctl.d/net.ipv4.conf.all.promote_secondaries.conf":
+    owner   => "root",
+    group   => "root",
+    mode    => 0644,
+    ensure  => present,
+    content => "net.ipv4.conf.all.promote_secondaries = 1\n",
+  }
+
   exec { "/etc/init.d/procps restart":
-    subscribe   => File["/etc/sysctl.d/mmap_min_addr.conf"],
+    subscribe   => File["/etc/sysctl.d/mmap_min_addr.conf", "/etc/sysctl.d/net.ipv4.conf.all.promote_secondaries.conf"],
     refreshonly => true,
   }