Puppet Class: authselect
- Defined in:
- manifests/init.pp
Summary
Manage authselect's active profileOverview
This will select the requested authselect profile
group: files systemd if “with-custom-group” netgroup: files if “with-custom-netgroup” automount: files if “with-custom-automount” services: files if “with-custom-services” sudoers: files if “with-sudo”‘
ensure: 'file'
owner: 'root'
group: 'root'
mode: '0664'
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'manifests/init.pp', line 44
class authselect (
Boolean $package_manage,
String $package_ensure,
Array[String[1], 1] $package_names,
Boolean $profile_manage,
String[1] $profile,
Array[String, 0] $profile_options,
Hash $custom_profiles,
) {
if $package_manage {
include 'authselect::package'
}
if $profile_manage and $package_ensure != 'absent' {
include 'authselect::config'
}
$custom_profiles.each |$key, $value| {
authselect::custom_profile { $key:
* => $value,
}
}
$_selected_profile = "${profile.split('/')[1]}"
if $_selected_profile in $custom_profiles.keys and $profile_manage and $package_ensure != 'absent' {
Authselect::Custom_profile[$_selected_profile] ~> Class['authselect::config']
}
}
|