Skip to content

Latest commit

 

History

History
430 lines (258 loc) · 9.79 KB

REFERENCE.md

File metadata and controls

430 lines (258 loc) · 9.79 KB

Reference

Table of Contents

Classes

Public Classes

  • sssd: A short summary of the purpose of this class

Private Classes

  • sssd::base_config: ensure packages match our expected state
  • sssd::install: ensure packages match our expected state
  • sssd::service: take care of the sssd service(s)

Defined types

Classes

sssd

A description of what this class does

Examples

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' => {} }
}

Parameters

The following parameters are available in the sssd class:

packages_manage

Data type: Boolean

Should we manage the package?

Default value: true

packages_ensure

Data type: String[1]

package ensure parameter

Default value: 'installed'

package_names

Data type: Array[String]

Array of packages to manage

Default value: ['sssd']

config_manage

Data type: Boolean

Should we manage the config?

Default value: true

main_pki_dir

Data type: Stdlib::Absolutepath

This is probably /etc/sssd/pki on your system

Default value: '/etc/sssd/pki'

main_config_dir

Data type: Stdlib::Absolutepath

This is probably /etc/sssd on your system

Default value: '/etc/sssd'

main_config_file

Data type: Stdlib::Absolutepath

This is probably /etc/sssd/sssd.conf on your system

Default value: '/etc/sssd/sssd.conf'

config_d_location

Data type: Stdlib::Absolutepath

This is probably /etc/sssd/conf.d on your system

Default value: '/etc/sssd/conf.d'

purge_unmanaged_conf_d

Data type: Boolean

Should we remove any files unknown to puppet in the conf_d location?

Default value: true

pki_owner

Data type: String

Owner for the pki directory - should probably be 'root' or 'sssd'

Default value: 'root'

pki_group

Data type: String

Group for the pki directory - should probably be 'root' or 'sssd'

Default value: 'root'

pki_mode

Data type: String

Group for the pki directory - should probably be '0711'

Default value: '0711'

config_owner

Data type: String

Owner for the config files - should probably be 'root' or 'sssd'

Default value: 'root'

config_group

Data type: String

Group for the config files - should probably be 'root' or 'sssd'

Default value: 'root'

config_mode

Data type: String

chmod for the config files - should be '0600'

Default value: '0600'

main_config

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' => {} }

configs

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: {}

services_manage

Data type: Boolean

Should this class manage the service states

Default value: true

services_ensure

Data type: Enum['stopped','running']

Service ensure parameter

Default value: 'running'

services_enable

Data type: Boolean

Service enable parameter

Default value: true

service_names

Data type: Array[String]

Array of services that are part of sssd

Default value: ['sssd.service']

advanced_permissions

Data type: Boolean

Enable permission handling for files/directories

Default value: false

config_dir_owner

Data type: String

Owner for configuration directories ($main_config_dir and $config_d_location)

Default value: 'root'

config_dir_group

Data type: String

Group for configuration directories ($main_config_dir and $config_d_location)

Default value: 'sssd'

config_dir_mode

Data type: Stdlib::Filemode

chmod for configuration directories ($main_config_dir and $config_d_location)

Default value: '0750'

main_config_owner

Data type: String

Owner for configuration files ($main_config_file and resoures created by $configs)

Default value: 'root'

main_config_group

Data type: String

Group for configuration files ($main_config_file and resoures created by $configs)

Default value: 'sssd'

main_config_mode

Data type: Stdlib::Filemode

chmod for configuration files ($main_config_file and resoures created by $configs)

Default value: '0640'

Defined types

sssd::config

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.

Examples

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',
    },
  },
}

Parameters

The following parameters are available in the sssd::config defined type:

stanzas

Data type: Hash

A hash of stanzas with key/value pairs of their entries

owner

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

group

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

mode

Data type: Optional[String]

permissions. Defaults to sssd::main_config_mode when sssd::advanced_permissions is enabled, sssd::config_mode otherwise.

Default value: undef

order

Data type: Integer[0, 99]

prefix used to get these files in the order you want

Default value: 50

config_d_location

Data type: Stdlib::Absolutepath

This is probably /etc/sssd/conf.d on your system

Default value: '/etc/sssd/conf.d'

filename

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

force_this_filename

Data type: Optional[Stdlib::Absolutepath]

Ignore the helper logic, write out this file

Default value: undef