diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-08-07 20:46:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-08-07 20:46:58 -0300 |
commit | ce2bb91aadc54061930aefed171b6b469a5e5d44 (patch) | |
tree | cd34a0cb876f92d2be00332e40965db8b7b3bd3d /manifests/subsystems/sysctl.pp | |
parent | 3dba502c33c6bb51109d119a1624e322b63def8c (diff) | |
download | puppet-nodo-ce2bb91aadc54061930aefed171b6b469a5e5d44.tar.gz puppet-nodo-ce2bb91aadc54061930aefed171b6b469a5e5d44.tar.bz2 |
Setting net.ipv4.conf.all.promote_secondaries = 1 at syslog
Diffstat (limited to 'manifests/subsystems/sysctl.pp')
-rw-r--r-- | manifests/subsystems/sysctl.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/subsystems/sysctl.pp b/manifests/subsystems/sysctl.pp index 28f140b..5e6dec7 100644 --- a/manifests/subsystems/sysctl.pp +++ b/manifests/subsystems/sysctl.pp @@ -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, } |