From 868c2bee3b8c77a01bdd2b003c0560c3006a0f8f Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 5 Jun 2012 20:06:17 -0300 Subject: new style for 2.7 --- manifests/init.pp | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 0bc7a22..5c9f800 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,22 +1,21 @@ class loginrecords( - $disable_btmp = true, - $disable_faillog = true, - $disable_lastlog = true, - $protect_utmp = true, - $disable_wtmp = true, - $ramdisk_on_var_run = true + $disable_btmp = true, + $disable_faillog = true, + $disable_lastlog = true, + $protect_utmp = true, + $disable_wtmp = true, + $ramdisk_on_var_run = true ){ - # Include main class - case $kernel { - "Linux": { - case $operatingsystem { - "debian", "ubuntu": { include loginrecords::debian } - default: { include loginrecords::base } - } - } - default: { - err("Kernel $kernel is not supported.") - } + # Include main class + case $::kernel { + "Linux": { + case $::operatingsystem { + "debian", "ubuntu": { include loginrecords::debian } + default: { include loginrecords::base } + } } - + default: { + err("Kernel ${::kernel} is not supported.") + } + } } -- cgit v1.2.3