Puppet Class: sssd::service::pac
- Defined in:
- manifests/service/pac.pp
Overview
This class sets up the [pac] section of /etc/sssd.conf.
The class parameters map directly to SSSD configuration. Full documentation of these configuration options can be found in the sssd.conf(5) man page.
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 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 72 73 |
# File 'manifests/service/pac.pp', line 22
class sssd::service::pac (
Optional[String] $description = undef,
Optional[Sssd::DebugLevel] $debug_level = undef,
Boolean $debug_timestamps = true,
Boolean $debug_microseconds = false,
Array[String] $allowed_uids = [],
Optional[Hash] $custom_options = undef,
) {
if $custom_options {
$_content = epp(
"${module_name}/service/custom_options.epp",
{
'service_name' => 'pac',
'options' => $custom_options,
},
)
} else {
# Build configuration lines in order (matching expected test output)
# Debug settings
$description_line = $description ? { undef => [], default => ["description = ${description}"] }
$debug_level_line = $debug_level ? { undef => [], default => ["debug_level = ${debug_level}"] }
$debug_timestamps_line = ["debug_timestamps = ${debug_timestamps}"]
$debug_microseconds_line = ["debug_microseconds = ${debug_microseconds}"]
# PAC-specific settings
$allowed_uids_line = $allowed_uids.empty ? { true => [], false => ["allowed_uids = ${allowed_uids.join(',')}"] }
# Combine all lines in order
$config_lines = (
$description_line +
$debug_level_line +
$debug_timestamps_line +
$debug_microseconds_line +
$allowed_uids_line
)
# Join all configuration lines
$content = (['# sssd::service::pac'] + $config_lines).join("\n")
$_content = epp(
"${module_name}/generic.epp",
{
'title' => 'pac',
'content' => $content,
},
)
}
sssd::config::entry { 'puppet_service_pac':
content => $_content,
}
}
|