Puppet Class: apache::mod::ldap

Defined in:
manifests/mod/ldap.pp

Overview

Parameters:

  • apache_version (Any) (defaults to: undef)
  • package_name (Any) (defaults to: undef)
  • ldap_trusted_global_cert_file (Any) (defaults to: undef)
  • ldap_trusted_global_cert_type (Optional[String]) (defaults to: 'CA_BASE64')
  • ldap_shared_cache_size (Any) (defaults to: undef)
  • ldap_cache_entries (Any) (defaults to: undef)
  • ldap_cache_ttl (Any) (defaults to: undef)
  • ldap_opcache_entries (Any) (defaults to: undef)
  • ldap_opcache_ttl (Any) (defaults to: undef)
  • ldap_trusted_mode (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/mod/ldap.pp', line 1

class apache::mod::ldap (
  $apache_version                                  = undef,
  $package_name                                    = undef,
  $ldap_trusted_global_cert_file                   = undef,
  Optional[String] $ldap_trusted_global_cert_type  = 'CA_BASE64',
  $ldap_shared_cache_size                          = undef,
  $ldap_cache_entries                              = undef,
  $ldap_cache_ttl                                  = undef,
  $ldap_opcache_entries                            = undef,
  $ldap_opcache_ttl                                = undef,
  $ldap_trusted_mode                               = undef,
){

  include ::apache
  $_apache_version = pick($apache_version, $apache::apache_version)
  ::apache::mod { 'ldap':
    package => $package_name,
  }
  # Template uses $_apache_version
  file { 'apache-mod-ldap.conf':
    ensure  => file,
    path    => "${::apache::mod_dir}/ldap.conf",
    mode    => $::apache::file_mode,
    content => template('apache/mod/ldap.conf.erb'),
    require => Exec["mkdir ${::apache::mod_dir}"],
    before  => File[$::apache::mod_dir],
    notify  => Class['apache::service'],
  }
}