aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: fe65eecf9e8bf70a4dfe61cac7ba33016a8a9d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class loginrecords(
    $disable_btmp = true,
    $disable_faillog = true,
    $disable_lastlog = true,
    $disable_utmp = false,
    $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.")
        }
    }

}