Puppet Class: apache::mod::authnz_ldap

Defined in:
manifests/mod/authnz_ldap.pp

Summary

Installs `mod_authnz_ldap`.

Overview

Note:

Unsupported platforms: RedHat: 6, 8, 9; CentOS: 6, 8; OracleLinux: 6, 8; Ubuntu: all; Debian: all; SLES: all

Parameters:

  • verify_server_cert (Boolean) (defaults to: true)

    Whether to force te verification of a server cert or not.

  • package_name (Optional[String]) (defaults to: undef)

    The name of the ldap package.

See Also:



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'manifests/mod/authnz_ldap.pp', line 12

class apache::mod::authnz_ldap (
  Boolean $verify_server_cert    = true,
  Optional[String] $package_name = undef,
) {
  include apache
  include 'apache::mod::ldap'
  ::apache::mod { 'authnz_ldap':
    package => $package_name,
  }

  # Template uses:
  # - $verify_server_cert
  file { 'authnz_ldap.conf':
    ensure  => file,
    path    => "${apache::mod_dir}/authnz_ldap.conf",
    mode    => $apache::file_mode,
    content => epp('apache/mod/authnz_ldap.conf.epp', { 'verify_server_cert' => $verify_server_cert, }),
    require => Exec["mkdir ${apache::mod_dir}"],
    before  => File[$apache::mod_dir],
    notify  => Class['apache::service'],
  }
}