blob: b2d063b5c24e142e622d6d6c675c83920b3f836b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import "*.pp"
class loginrecords {
# Default settings
if $disable_btmp == '' {
$disable_btmp = true
}
if $disable_faillog == '' {
$disable_faillog = true
}
if $disable_lastlog == '' {
$disable_lastlog = true
}
if $disable_utmp == '' {
$disable_utmp = true
}
if $disable_wtmp == '' {
$disable_wtmp = 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.")
}
}
}
|