summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-13 15:39:57 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-13 15:39:57 +0200
commitc127432a1c77cc749f382e7a110ed165107eb236 (patch)
treef4e687c03e58cdcf2bc3fba9b416d81ba6f56760
parentInitial commit. (diff)
downloadphpldapadmin-c127432a1c77cc749f382e7a110ed165107eb236.tar.gz
phpldapadmin-c127432a1c77cc749f382e7a110ed165107eb236.tar.xz
Lint fixes.
-rw-r--r--manifests/init.pp17
-rw-r--r--metadata.json10
-rw-r--r--pdk.yaml2
3 files changed, 26 insertions, 3 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 1b5b0fa..b8be630 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,3 +1,15 @@
+# @summary Configures PHPLDAPAdmin
+# @param servername
+# Pretty name for the server
+# @param server_uri
+# Address of ldap server to connect to
+# @param port
+# Port of ldap server to connect to
+# @param debug_mode
+# @param tmpdir
+# @param timezone
+# @param friendly_attrs
+# @param auth_type
class phpldapadmin (
String $servername = 'My LDAP Server',
String $server_uri = '127.0.0.1',
@@ -17,6 +29,10 @@ class phpldapadmin (
) {
ensure_packages(['phpldapadmin'])
+ # /etc/php7/php.ini
+ # extension=ldap
+ # exteniosn
+
# TODO also ensure writable by web server
file { $tmpdir:
ensure => directory,
@@ -25,5 +41,4 @@ class phpldapadmin (
file { '/etc/webapps/phpldapadmin/config.php':
content => epp("${module_name}/config.php.epp"),
}
-
}
diff --git a/metadata.json b/metadata.json
index b4976ad..2c21089 100644
--- a/metadata.json
+++ b/metadata.json
@@ -2,7 +2,7 @@
"name": "HugoNikanor-phpldapadmin",
"version": "0.1.0",
"author": "Hugo Hörnquist",
- "license": "None",
+ "license": "Apache-2.0",
"summary": "Configures phpldapadmin.",
"source": "https://git.hornquist.se/puppet/phpldapadmin",
"dependencies": [
@@ -12,5 +12,11 @@
}
],
"operatingsystem_support": [
- ]
+ {
+ "operatingsystem": "Archlinux"
+ }
+ ],
+ "pdk-version": "2.5.0",
+ "template-url": "pdk-default#2.5.0",
+ "template-ref": "tags/2.5.0-0-g369d483"
}
diff --git a/pdk.yaml b/pdk.yaml
new file mode 100644
index 0000000..4bef4bd
--- /dev/null
+++ b/pdk.yaml
@@ -0,0 +1,2 @@
+---
+ignore: []