Puppet Class: yp::ldap
- Inherits:
- yp::params
- Defined in:
- manifests/ldap.pp
Overview
Class for installing and managing ypldap
daemon.
This is for OpenBSD only and is the equivalent of PAM/LDAP on Linux.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'manifests/ldap.pp', line 43
class yp::ldap (
String $domain,
Hash[String, Hash[String, Any]] $directories = {},
Stdlib::Absolutepath $conf_file = $::yp::params::ldap_conf_file,
Integer[1] $interval = 60,
Array[String, 1] $maps = $::yp::params::ldap_maps,
Boolean $service_enable = $::yp::params::ldap_service_enable,
Enum['running', 'stopped'] $service_ensure = $::yp::params::ldap_service_ensure,
String $service_name = $::yp::params::ldap_service_name,
Optional[Stdlib::Absolutepath] $tls_cacert_file = undef,
) inherits yp::params {
if $facts['os']['family'] != 'OpenBSD' {
fail("The yp::ldap class is not supported on ${facts['os']['family']} based systems.")
}
if defined(Class['yp::serv']) {
fail('yp::serv and yp::ldap are mutually exclusive.')
}
contain yp::ldap::config
contain yp::ldap::service
Class['yp::ldap::config'] ~> Class['yp::ldap::service']
}
|