diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-03-23 01:10:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-03-23 01:10:37 -0300 |
commit | 3bd543774084d9f1e56a3ee2e0adbe1fb4ff98b3 (patch) | |
tree | aaf2526ad086cfcddb55936ec40e4c3b1179894d /manifests/subsystems | |
parent | 71506d2f67bcf4555df99fdb030f4a6fd32945d9 (diff) | |
download | puppet-nodo-3bd543774084d9f1e56a3ee2e0adbe1fb4ff98b3.tar.gz puppet-nodo-3bd543774084d9f1e56a3ee2e0adbe1fb4ff98b3.tar.bz2 |
Kernel printk config enhancement
Diffstat (limited to 'manifests/subsystems')
-rw-r--r-- | manifests/subsystems/sysctl.pp | 9 |
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, } } |