Defined Type: ipa::masterprincipal
- Defined in:
- manifests/masterprincipal.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'manifests/masterprincipal.pp', line 1
define ipa::masterprincipal (
$host = $name,
$present = true,
$realm = {}
) {
$principals = suffix(prefix(["${host}"], "host/"), "@${realm}")
$ensure = $present ? {
false => 'absent',
default => 'present'
}
k5login { "/root/.k5login":
ensure => $ensure,
principals => $principals
}
}
|