aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/sysctl
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/sysctl')
-rw-r--r--manifests/subsystem/sysctl/appliance.pp14
1 files changed, 14 insertions, 0 deletions
diff --git a/manifests/subsystem/sysctl/appliance.pp b/manifests/subsystem/sysctl/appliance.pp
new file mode 100644
index 0000000..83c151c
--- /dev/null
+++ b/manifests/subsystem/sysctl/appliance.pp
@@ -0,0 +1,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,
+ }
+}