From 95e87fa9448d4806ba4fc5341ffbbf21e06ef092 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 29 Oct 2010 01:05:58 +0000 Subject: - add ldap config file, with ldap restricted to localhost (until we set a firewall or stricter acl) --- modules/openldap/manifests/init.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'modules/openldap/manifests/init.pp') diff --git a/modules/openldap/manifests/init.pp b/modules/openldap/manifests/init.pp index b7332d88..4270a885 100644 --- a/modules/openldap/manifests/init.pp +++ b/modules/openldap/manifests/init.pp @@ -34,6 +34,16 @@ class openldap { notify => [Service['ldap']] } + file { '/etc/sysconfig/ldap': + ensure => present, + owner => root, + group => root, + mode => 644, + require => Package["openldap-servers"], + content => "", + notify => [Service['ldap']] + } + class master inherits base { file { '/etc/openldap/mandriva-dit-access.conf': content => template("openldap/mandriva-dit-access.conf"), @@ -42,5 +52,9 @@ class openldap { file { '/etc/openldap/slapd.conf': content => template("openldap/slapd.conf"), } + + file { '/etc/sysconfig/ldap': + content => template("openldap/ldap.sysconfig"), + } } } -- cgit v1.2.1