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
|
# File 'manifests/ldap_auth.pp', line 78
class autofs::ldap_auth (
Optional[String] $user = simplib::lookup('simp_options::ldap::bind_dn', { 'default_value' => undef }),
Optional[String] $secret = simplib::lookup('simp_options::ldap::bind_pw', { 'default_value' => undef}),
Optional[String] $encoded_secret = undef,
Stdlib::Absolutepath $ldap_auth_conf_file = $autofs::auth_conf_file,
Boolean $usetls = true,
Boolean $tlsrequired = true,
Variant[Boolean, Enum['autodetect','simple']] $authrequired = true,
Autofs::Authtype $authtype = 'LOGIN',
Stdlib::Absolutepath $external_cert = "/etc/pki/simp_apps/autofs/x509/public/${facts['fqdn']}.pub",
Stdlib::Absolutepath $external_key = "/etc/pki/simp_apps/autofs/x509/private/${facts['fqdn']}.pem",
Optional[String] $clientprinc = undef,
Optional[Stdlib::Absolutepath] $credentialcache = undef
) {
assert_private()
file { $ldap_auth_conf_file:
owner => 'root',
group => 'root',
mode => '0600',
content => epp("${module_name}/etc/autofs_ldap_auth.conf.epp")
}
if $authtype == 'EXTERNAL' {
contain 'autofs::config::pki'
}
}
|