aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-03-23 01:10:37 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-03-23 01:10:37 -0300
commit3bd543774084d9f1e56a3ee2e0adbe1fb4ff98b3 (patch)
treeaaf2526ad086cfcddb55936ec40e4c3b1179894d /manifests/subsystems
parent71506d2f67bcf4555df99fdb030f4a6fd32945d9 (diff)
downloadpuppet-nodo-3bd543774084d9f1e56a3ee2e0adbe1fb4ff98b3.tar.gz
puppet-nodo-3bd543774084d9f1e56a3ee2e0adbe1fb4ff98b3.tar.bz2
Kernel printk config enhancement
Diffstat (limited to 'manifests/subsystems')
-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,
}
}