summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp29
1 files changed, 29 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..1b5b0fa
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,29 @@
+class phpldapadmin (
+ String $servername = 'My LDAP Server',
+ String $server_uri = '127.0.0.1',
+ Integer[0, 65535] $port = 389,
+ Boolean $debug_mode = false,
+ String $tmpdir = '/tmp',
+ Optional[String] $timezone = undef,
+ Hash[String, String] $friendly_attrs = {
+ 'facsimileTelephoneNumber' => 'Fax',
+ 'gid' => 'Group',
+ 'mail' => 'Email',
+ 'telephoneNumber' => 'Telephone',
+ 'uid' => 'User Name',
+ 'userPassword' => 'Password',
+ },
+ Enum['cookie', 'session', 'http', 'config', 'sasl', 'sasl_external'] $auth_type = 'session',
+) {
+ ensure_packages(['phpldapadmin'])
+
+ # TODO also ensure writable by web server
+ file { $tmpdir:
+ ensure => directory,
+ }
+
+ file { '/etc/webapps/phpldapadmin/config.php':
+ content => epp("${module_name}/config.php.epp"),
+ }
+
+}