Puppet Class: realmd
- Defined in:
- manifests/init.pp
Summary
realmdOverview
Installs, configures, and joins a domain using realmd. Optionally control the Kerberos client and SSSD configuration files and the SSSD service.
Default values for all parameters are in hiera.
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 |
# File 'manifests/init.pp', line 68
class realmd (
String $realmd_package_name,
String $realmd_package_ensure,
Stdlib::Absolutepath $realmd_config_file,
Hash $realmd_config,
String $homedir_umask,
String $adcli_package_name,
String $adcli_package_ensure,
String $krb_client_package_name,
String $krb_client_package_ensure,
String $sssd_package_name,
String $sssd_package_ensure,
String $sssd_service_name,
String $sssd_service_ensure,
Stdlib::Absolutepath $sssd_config_file,
Stdlib::Absolutepath $sssd_config_cache_file,
Hash $sssd_config,
Boolean $manage_sssd_config,
Boolean $manage_sssd_service,
Boolean $manage_sssd_package,
String $domain,
String $netbiosname,
Variant[String, Undef] $domain_join_user,
Variant[String, Undef] $domain_join_password,
Variant[String, Undef] $one_time_password,
Boolean $krb_ticket_join,
Variant[Stdlib::Absolutepath, Undef] $krb_keytab,
Stdlib::Absolutepath $krb_config_file,
Hash $krb_config,
Boolean $manage_krb_config,
Variant[String, Undef] $ou,
Hash $required_packages,
Variant[Array, Undef] $extra_join_options,
Variant[String[1, 15], Undef, Boolean[false]] $computer_name,
) {
if $krb_ticket_join == false {
if ($domain_join_user and !$domain_join_password) {
fail('Cannot set domain_join_user without domain_join_password')
}
}
if ($domain_join_password and !$domain_join_user) {
fail('Cannot set domain_join_password without domain_join_user')
}
if ($one_time_password and $domain_join_user) {
fail('Cannot do a machine login with one_time_password, when a domain_join_user is set')
}
if $manage_sssd_config and empty($sssd_config) {
fail('The sssd_config parameter cannot be an empty hash when managing the SSSD configuration')
}
if $manage_krb_config and empty($krb_config) {
fail('The krb_config parameter cannot be an empty hash when managing the Kerberos client configuration')
}
contain 'realmd::install'
contain 'realmd::config'
contain 'realmd::join'
contain 'realmd::sssd::config'
Class['realmd::install']
-> Class['realmd::config']
~> Class['realmd::join']
-> Class['realmd::sssd::config']
if $manage_sssd_service {
contain 'realmd::sssd::service'
Class['realmd::sssd::config'] ~> Class['realmd::sssd::service']
}
}
|