From 548061112d2e2627317f9379d2f501fcf3f6ea54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 30 Aug 2017 22:16:39 +0200 Subject: Add LDAP support --- modules/base_installation/manifests/ldap.pp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 modules/base_installation/manifests/ldap.pp (limited to 'modules/base_installation/manifests/ldap.pp') diff --git a/modules/base_installation/manifests/ldap.pp b/modules/base_installation/manifests/ldap.pp new file mode 100644 index 0000000..1825700 --- /dev/null +++ b/modules/base_installation/manifests/ldap.pp @@ -0,0 +1,24 @@ +class base_installation::ldap inherits base_installation { + ensure_packages(["openldap"]) + + File { + mode => "0644", + owner => "root", + group => "root", + } + + file { '/etc/openldap': + ensure => directory, + require => Package["openldap"], + recurse => true, + purge => true, + force => true, + } + + file { '/etc/openldap/ldap.conf': + ensure => present, + content => template("base_installation/ldap/ldap.conf.erb"), + require => File['/etc/openldap'], + } + +} -- cgit v1.2.3