From c127432a1c77cc749f382e7a110ed165107eb236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 13 Jun 2023 15:39:57 +0200 Subject: Lint fixes. --- manifests/init.pp | 17 ++++++++++++++++- metadata.json | 10 ++++++++-- pdk.yaml | 2 ++ 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 pdk.yaml 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: [] -- cgit v1.2.3