diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-18 12:03:04 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-18 12:03:04 -0200 |
commit | 533b8fbd9dfca345151f146f348496fc2a5fa530 (patch) | |
tree | f3486c01a440f628d546beda5b4e4448edaaf1b1 /manifests/init.pp | |
parent | b0c0b29cf37451cfe7090e2f53197798c5dbba4b (diff) | |
parent | ed222aced2762800363f4428a26a58e960e22983 (diff) | |
download | puppet-loginrecords-533b8fbd9dfca345151f146f348496fc2a5fa530.tar.gz puppet-loginrecords-533b8fbd9dfca345151f146f348496fc2a5fa530.tar.bz2 |
Merge branch 'master' of ssh://labs.riseup.net/shared-loginrecords
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 0bc7a22..fd2f86b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,22 +1,23 @@ +# manage how login records are +# stored on the system 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: { + fail("Kernel ${::kernel} is not supported.") + } + } } |