diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2011-11-21 11:10:22 -0200 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2011-11-21 11:10:22 -0200 | 
| commit | b7c93a92ea34fc34d62c9e4e0bc55c68087f3e7d (patch) | |
| tree | a528650619bf44a8b30b5fed9acd74927ecf8f06 /manifests/subsystems | |
| parent | 19777c58c7e1b1a0a9db858467bd8d5f487d24e2 (diff) | |
| download | puppet-nodo-b7c93a92ea34fc34d62c9e4e0bc55c68087f3e7d.tar.gz puppet-nodo-b7c93a92ea34fc34d62c9e4e0bc55c68087f3e7d.tar.bz2 | |
Adding sysctl::appliance
Diffstat (limited to 'manifests/subsystems')
| -rw-r--r-- | manifests/subsystems/sysctl.pp | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/manifests/subsystems/sysctl.pp b/manifests/subsystems/sysctl.pp index 8c5009b..28f140b 100644 --- a/manifests/subsystems/sysctl.pp +++ b/manifests/subsystems/sysctl.pp @@ -42,3 +42,22 @@ class sysctl::laptop {      },    }  } + +class sysctl::appliance { +  case $kernel_panic { +    '': { $kernel_panic = "20" } +  } + +  file { "/etc/sysctl.d/kernel.panic.conf": +    owner   => "root", +    group   => "root", +    mode    => 0644, +    ensure  => present, +    content => "kernel.panic = $kernel_panic\n", +  } + +  exec { "/bin/echo '$kernel_panic' > /proc/sys/kernel/panic": +    subscribe   => File["/etc/sysctl.d/kernel.panic.conf"], +    refreshonly => true, +  } +} | 
