aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystems/sysctl.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/subsystems/sysctl.pp b/manifests/subsystems/sysctl.pp
index 3e2e198..f6b7585 100644
--- a/manifests/subsystems/sysctl.pp
+++ b/manifests/subsystems/sysctl.pp
@@ -14,12 +14,19 @@ class sysctl {
refreshonly => true,
}
+ $printk_levels = '3 4 1 3'
+
file { "/etc/sysctl.d/kernel.printk.conf":
owner => "root",
group => "root",
mode => 0644,
ensure => present,
- content => "kernel.printk = 3 4 1 3\n",
+ content => "kernel.printk = $printk_levels\n",
+ }
+
+ exec { "/bin/echo '$printk_levels' > /proc/sys/kernel/printk":
+ subscribe => File["/etc/sysctl.d/kern.printk.conf"],
+ refreshonly => true,
}
}