Puppet Class: sssd
- Defined in:
- manifests/init.pp
Overview
This class allows you to install and configure SSSD.
It will forcefully disable nscd which consequently prevents you from using an nscd module at the same time, which is the correct behavior.
Full documentation of the parameters that map directly to SSSD configuration options can be found in the sssd.conf(5) man page.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'manifests/init.pp', line 96
class sssd (
Boolean $authoritative = false,
Array[String[1, 255]] $domains = [],
Optional[Sssd::DebugLevel] $debug_level = undef,
Boolean $debug_timestamps = true,
Boolean $debug_microseconds = false,
Optional[String[1]] $description = undef,
Integer[1] $config_file_version = 2,
Sssd::Services $services = ['nss','pam','ssh','sudo'],
Integer[0] $reconnection_retries = 3,
Optional[String[1]] $re_expression = undef,
Optional[String[1]] $full_name_format = undef,
Optional[Boolean] $try_inotify = undef,
Optional[String[1]] $krb5_rcache_dir = undef,
Optional[String[1]] $user = undef,
Optional[String[1]] $default_domain_suffix = undef,
Optional[String[1]] $override_space = undef,
Hash $ldap_providers = {},
Boolean $enable_files_domain = true,
Boolean $enumerate_users = false,
Boolean $cache_credentials = true,
Boolean $include_svc_config = true,
Integer[0] $min_id = 1,
Boolean $auditd = simplib::lookup('simp_options::auditd', { 'default_value' => false }),
Variant[Boolean,Enum['simp']] $pki = simplib::lookup('simp_options::pki', { 'default_value' => false }),
Stdlib::Absolutepath $app_pki_cert_source = simplib::lookup('simp_options::pki::source', { 'default_value' => '/etc/pki/simp/x509' }),
Stdlib::Absolutepath $app_pki_dir = '/etc/pki/simp_apps/sssd/x509',
Boolean $auto_add_ipa_domain = true,
Optional[String[1]] $custom_config = undef,
) {
include 'sssd::install'
include 'sssd::config'
unless sssd::supported_version() {
fail "The ${module_name} module does not support SSSD < ${facts['sssd_version']}. Please update your system to continue."
}
Class['sssd::install'] -> Class['sssd::config']
if $custom_config {
sssd::config::entry { 'puppet_custom':
content => $custom_config,
order => 99999,
}
}
if $pki {
simplib::assert_optional_dependency($module_name, 'simp/pki')
include 'sssd::pki'
Class['sssd::config'] -> Class['sssd::pki']
}
if $auditd {
simplib::assert_optional_dependency($module_name, 'simp/auditd')
include 'auditd'
auditd::rule { 'sssd':
content => '-w /etc/sssd/ -p wa -k CFG_sssd',
}
}
$ldap_providers.each |$key, $value| {
sssd::provider::ldap { $key:
* => $value,
}
}
}
|