]> gitweb.fluxo.info Git - puppet-loginrecords.git/commitdiff
new style for 2.7
authormh <mh@immerda.ch>
Tue, 5 Jun 2012 23:06:17 +0000 (20:06 -0300)
committermh <mh@immerda.ch>
Tue, 5 Jun 2012 23:06:17 +0000 (20:06 -0300)
manifests/init.pp

index 0bc7a22671a5dc65bab74d3519fae16382a242c6..5c9f80053dafb37d51f54c7cc8ddff913a4c8f3b 100644 (file)
@@ -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.")
+    }
+  }
 }