Added support for Debian, Ubuntu and OS X to ldap::client.
This commit is contained in:
parent
da62c69819
commit
7c2fdbd268
2 changed files with 13 additions and 2 deletions
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
|
||||
BASE <%= ldap_basedn %>
|
||||
URI <% ldap_server.each do |uri| %><%= uri %> <% end %>
|
||||
TLS_REQCERT allow
|
||||
TLS_REQCERT never
|
||||
|
|
Loading…
Add table
Reference in a new issue