aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/sysctl/appliance.pp
blob: 23b1e962659863523d8da444e35b628c2cedad51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class nodo::subsystem::sysctl::appliance($kernel_panic = hiera('nodo::sysctl::appliance', '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,
  }
}