diff options
author | intrigeri <intrigeri@boum.org> | 2013-01-02 12:47:34 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2013-01-02 12:47:34 +0100 |
commit | 4cfb1fc6bbe356e335d8635bbadfd6ea72f8bc20 (patch) | |
tree | 9ee65026036cde571b27aaa7e57b9a421701907e /manifests/init.pp | |
parent | fdb60047acf69dac300a156958a7e115f185f322 (diff) | |
parent | b94947ba7f99a69837c65c9217e692d74052b651 (diff) | |
download | puppet-loginrecords-4cfb1fc6bbe356e335d8635bbadfd6ea72f8bc20.tar.gz puppet-loginrecords-4cfb1fc6bbe356e335d8635bbadfd6ea72f8bc20.tar.bz2 |
Merge branch 'shared'
Conflicts:
README
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.") + } + } } |