sssd: A short summary of the purpose of this class
sssd::base_config: ensure packages match our expected statesssd::install: ensure packages match our expected statesssd::service: take care of the sssd service(s)
sssd::config: Write out an SSSD compatible config file
A description of what this class does
class { 'sssd':
main_config => {
'sssd' => {
'domains' => 'a, b',
'services => ['pam', 'nss']
}},
configs => {
'enable debug' => {
'sssd' => { 'debug' => 0 }},
'setup different domains' => {
'sssd' => { 'domains' => ['c', 'd'] },
'domain/c' => { 'id_provider' => 'ldap' },
'domain/d' => { 'id_provider' => 'ipa'}
setup_empty_nss_section => { 'nss' => {} }
}The following parameters are available in the sssd class:
packages_managepackages_ensurepackage_namesconfig_managemain_pki_dirmain_config_dirmain_config_fileconfig_d_locationpurge_unmanaged_conf_dpki_ownerpki_grouppki_modeconfig_ownerconfig_groupconfig_modemain_configconfigsservices_manageservices_ensureservices_enableservice_namesadvanced_permissionsconfig_dir_ownerconfig_dir_groupconfig_dir_modemain_config_ownermain_config_groupmain_config_mode
Data type: Boolean
Should we manage the package?
Default value: true
Data type: String[1]
package ensure parameter
Default value: 'installed'
Data type: Array[String]
Array of packages to manage
Default value: ['sssd']
Data type: Boolean
Should we manage the config?
Default value: true
Data type: Stdlib::Absolutepath
This is probably /etc/sssd/pki on your system
Default value: '/etc/sssd/pki'
Data type: Stdlib::Absolutepath
This is probably /etc/sssd on your system
Default value: '/etc/sssd'
Data type: Stdlib::Absolutepath
This is probably /etc/sssd/sssd.conf on your system
Default value: '/etc/sssd/sssd.conf'
Data type: Stdlib::Absolutepath
This is probably /etc/sssd/conf.d on your system
Default value: '/etc/sssd/conf.d'
Data type: Boolean
Should we remove any files unknown to puppet in the conf_d location?
Default value: true
Data type: String
Owner for the pki directory - should probably be 'root' or 'sssd'
Default value: 'root'
Data type: String
Group for the pki directory - should probably be 'root' or 'sssd'
Default value: 'root'
Data type: String
Group for the pki directory - should probably be '0711'
Default value: '0711'
Data type: String
Owner for the config files - should probably be 'root' or 'sssd'
Default value: 'root'
Data type: String
Group for the config files - should probably be 'root' or 'sssd'
Default value: 'root'
Data type: String
chmod for the config files - should be '0600'
Default value: '0600'
Data type: Hash
Hash containing the content of $main_config_file broken out by section Entries in $config_d_location can replace these elements in a last file wins methodology.
Default value: { 'sssd' => {} }
Data type: Hash
A Hash similar to $main_config, but with one more level of nesting 'any text you want': section: key: value
Default value: {}
Data type: Boolean
Should this class manage the service states
Default value: true
Data type: Enum['stopped','running']
Service ensure parameter
Default value: 'running'
Data type: Boolean
Service enable parameter
Default value: true
Data type: Array[String]
Array of services that are part of sssd
Default value: ['sssd.service']
Data type: Boolean
Enable permission handling for files/directories
Default value: false
Data type: String
Owner for configuration directories ($main_config_dir and $config_d_location)
Default value: 'root'
Data type: String
Group for configuration directories ($main_config_dir and $config_d_location)
Default value: 'sssd'
Data type: Stdlib::Filemode
chmod for configuration directories ($main_config_dir and $config_d_location)
Default value: '0750'
Data type: String
Owner for configuration files ($main_config_file and resoures created by $configs)
Default value: 'root'
Data type: String
Group for configuration files ($main_config_file and resoures created by $configs)
Default value: 'sssd'
Data type: Stdlib::Filemode
chmod for configuration files ($main_config_file and resoures created by $configs)
Default value: '0640'
Transform a Hash of settings into a deterministic sssd compatible config file.
The strings will be used "as is", and arrays will be joined with ', ' which should let you set things in a number of useful ways.
sssd::config { 'main conf':
stanzas => {
'sssd' => {
'domains' => ['example.com', 'otherdomain.tld'],
'services' => ['pam', 'nss', 'sudo'],
'debug' => 0,
},
'example.com' => {
'id_provider' => 'ldap',
},
},
force_this_filename => '/etc/sssd/sssd.conf',
}
sssd::config { 'LDAP':
stanzas => {
'domain/LDAP' => {
'id_provider' => 'ldap',
},
},
}The following parameters are available in the sssd::config defined type:
Data type: Hash
A hash of stanzas with key/value pairs of their entries
Data type: Optional[String]
Who should own. Defaults to sssd::main_config_owner when
sssd::advanced_permissions is enabled, sssd::config_owner otherwise.
Default value: undef
Data type: Optional[String]
Who should own. Defaults to sssd::main_config_group when
sssd::advanced_permissions is enabled, sssd::config_group otherwise.
Default value: undef
Data type: Optional[String]
permissions. Defaults to sssd::main_config_mode when
sssd::advanced_permissions is enabled, sssd::config_mode otherwise.
Default value: undef
Data type: Integer[0, 99]
prefix used to get these files in the order you want
Default value: 50
Data type: Stdlib::Absolutepath
This is probably /etc/sssd/conf.d on your system
Default value: '/etc/sssd/conf.d'
Data type: Optional[Pattern[/\.conf$/]]
Name of the config file to write out into $config_d_location.
The filename must end in .conf or sssd will not see it.
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Ignore the helper logic, write out this file
Default value: undef