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 (Any) (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)


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
30
# File 'manifests/mod/ldap.pp', line 1

class apache::mod::ldap (
  $apache_version                = undef,
  $package_name                  = undef,
  $ldap_trusted_global_cert_file = undef,
  $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,
){
  include ::apache
  $_apache_version = pick($apache_version, $apache::apache_version)
  if ($ldap_trusted_global_cert_file) {
    validate_string($ldap_trusted_global_cert_type)
  }
  ::apache::mod { 'ldap':
    package => $package_name,
  }
  # Template uses $_apache_version
  file { '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'],
  }
}