]> git.donarmstrong.com Git - dsa-puppet.git/blob - 3rdparty/modules/apache/manifests/mod/authnz_ldap.pp
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / manifests / mod / authnz_ldap.pp
1 class apache::mod::authnz_ldap (
2   $verifyServerCert = true,
3 ) {
4   include '::apache::mod::ldap'
5   ::apache::mod { 'authnz_ldap': }
6
7   validate_bool($verifyServerCert)
8
9   # Template uses:
10   # - $verifyServerCert
11   file { 'authnz_ldap.conf':
12     ensure  => file,
13     path    => "${::apache::mod_dir}/authnz_ldap.conf",
14     content => template('apache/mod/authnz_ldap.conf.erb'),
15     require => Exec["mkdir ${::apache::mod_dir}"],
16     before  => File[$::apache::mod_dir],
17     notify  => Class['apache::service'],
18   }
19 }