From d3e11f88f27609ca199bf1263348a466e909ff78 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 2 Jun 2013 21:23:53 -0300 Subject: Moving 'sysctl::appliance' to 'nodo::subsystem::sysctl::appliance' --- manifests/subsystem/sysctl.pp | 15 --------------- manifests/subsystem/sysctl/appliance.pp | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 manifests/subsystem/sysctl/appliance.pp (limited to 'manifests/subsystem') diff --git a/manifests/subsystem/sysctl.pp b/manifests/subsystem/sysctl.pp index 1df0348..03e1683 100644 --- a/manifests/subsystem/sysctl.pp +++ b/manifests/subsystem/sysctl.pp @@ -38,18 +38,3 @@ class nodo::subsystem::sysctl { refreshonly => true, } } - -class 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, - } -} 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, + } +} -- cgit v1.2.3