Added support for Debian, Ubuntu and OS X to ldap::client.

This commit is contained in:
Ossi Salmi 2010-10-22 23:33:01 +03:00 committed by Timo Mkinen
parent da62c69819
commit 7c2fdbd268
2 changed files with 13 additions and 2 deletions

View file

@ -16,18 +16,29 @@ class ldap::client {
package { "openldap-client":
name => $operatingsystem ? {
debian => "ldap-utils",
ubuntu => "ldap-utils",
openbsd => "openldap-client",
default => "openldap-clients",
},
ensure => installed,
ensure => $operatingsystem ? {
darwin => absent,
default => installed,
},
}
file { "/etc/openldap/ldap.conf":
ensure => present,
content => template("ldap/ldap.conf.erb"),
path => $operatingsystem ? {
debian => "/etc/ldap/ldap.conf",
ubuntu => "/etc/ldap/ldap.conf",
default => "/etc/openldap/ldap.conf",
},
mode => 0644,
owner => root,
group => $operatingsystem ? {
darwin => wheel,
openbsd => wheel,
default => root,
},

View file

@ -7,4 +7,4 @@
BASE <%= ldap_basedn %>
URI <% ldap_server.each do |uri| %><%= uri %> <% end %>
TLS_REQCERT allow
TLS_REQCERT never