]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/apache/manifests/mod/authnz_ldap.pp
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / manifests / mod / authnz_ldap.pp
diff --git a/3rdparty/modules/apache/manifests/mod/authnz_ldap.pp b/3rdparty/modules/apache/manifests/mod/authnz_ldap.pp
new file mode 100644 (file)
index 0000000..b75369f
--- /dev/null
@@ -0,0 +1,19 @@
+class apache::mod::authnz_ldap (
+  $verifyServerCert = true,
+) {
+  include '::apache::mod::ldap'
+  ::apache::mod { 'authnz_ldap': }
+
+  validate_bool($verifyServerCert)
+
+  # Template uses:
+  # - $verifyServerCert
+  file { 'authnz_ldap.conf':
+    ensure  => file,
+    path    => "${::apache::mod_dir}/authnz_ldap.conf",
+    content => template('apache/mod/authnz_ldap.conf.erb'),
+    require => Exec["mkdir ${::apache::mod_dir}"],
+    before  => File[$::apache::mod_dir],
+    notify  => Class['apache::service'],
+  }
+}