Puppet Class: apache::mod::ldap

Defined in:
manifests/mod/ldap.pp

Overview

Parameters:

  • apache_version (Any) (defaults to: $::apache::apache_version)
  • ldap_trusted_global_cert_file (Any) (defaults to: undef)
  • ldap_trusted_global_cert_type (Any) (defaults to: 'CA_BASE64')


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'manifests/mod/ldap.pp', line 1

class apache::mod::ldap (
  $apache_version                = $::apache::apache_version,
  $ldap_trusted_global_cert_file = undef,
  $ldap_trusted_global_cert_type = 'CA_BASE64',
){
  if ($ldap_trusted_global_cert_file) {
    validate_string($ldap_trusted_global_cert_type)
  }
  ::apache::mod { 'ldap': }
  # Template uses $apache_version
  file { 'ldap.conf':
    ensure  => file,
    path    => "${::apache::mod_dir}/ldap.conf",
    content => template('apache/mod/ldap.conf.erb'),
    require => Exec["mkdir ${::apache::mod_dir}"],
    before  => File[$::apache::mod_dir],
    notify  => Class['apache::service'],
  }
}