Puppet Class: apache::mod::ldap
- Defined in:
- manifests/mod/ldap.pp
Summary
Installs and configures `mod_ldap`.Overview
Note:
Unsupported platforms: CentOS: 8; RedHat: 8, 9
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'manifests/mod/ldap.pp', line 48
class apache::mod::ldap (
Optional[String] $package_name = undef,
Optional[String] $ldap_trusted_global_cert_file = undef,
String $ldap_trusted_global_cert_type = 'CA_BASE64',
Optional[Integer] $ldap_shared_cache_size = undef,
Optional[Integer] $ldap_cache_entries = undef,
Optional[Integer] $ldap_cache_ttl = undef,
Optional[Integer] $ldap_opcache_entries = undef,
Optional[Integer] $ldap_opcache_ttl = undef,
Optional[String] $ldap_trusted_mode = undef,
String $ldap_path = '/ldap-status',
) {
include apache
::apache::mod { 'ldap':
package => $package_name,
}
$parameters = {
'ldap_path' => $ldap_path,
'ldap_trusted_global_cert_file' => $ldap_trusted_global_cert_file,
'ldap_trusted_global_cert_type' => $ldap_trusted_global_cert_type,
'ldap_trusted_mode' => $ldap_trusted_mode,
'ldap_shared_cache_size' => $ldap_shared_cache_size,
'ldap_cache_entries' => $ldap_cache_entries,
'ldap_cache_ttl' => $ldap_cache_ttl,
'ldap_opcache_entries' => $ldap_opcache_entries,
'ldap_opcache_ttl' => $ldap_opcache_ttl,
}
file { 'ldap.conf':
ensure => file,
path => "${apache::mod_dir}/ldap.conf",
mode => $apache::file_mode,
content => epp('apache/mod/ldap.conf.epp', $parameters),
require => Exec["mkdir ${apache::mod_dir}"],
before => File[$apache::mod_dir],
notify => Class['apache::service'],
}
}
|