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":
|
package { "openldap-client":
|
||||||
name => $operatingsystem ? {
|
name => $operatingsystem ? {
|
||||||
|
debian => "ldap-utils",
|
||||||
|
ubuntu => "ldap-utils",
|
||||||
openbsd => "openldap-client",
|
openbsd => "openldap-client",
|
||||||
default => "openldap-clients",
|
default => "openldap-clients",
|
||||||
},
|
},
|
||||||
ensure => installed,
|
ensure => $operatingsystem ? {
|
||||||
|
darwin => absent,
|
||||||
|
default => installed,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/openldap/ldap.conf":
|
file { "/etc/openldap/ldap.conf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => template("ldap/ldap.conf.erb"),
|
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,
|
mode => 0644,
|
||||||
owner => root,
|
owner => root,
|
||||||
group => $operatingsystem ? {
|
group => $operatingsystem ? {
|
||||||
|
darwin => wheel,
|
||||||
openbsd => wheel,
|
openbsd => wheel,
|
||||||
default => root,
|
default => root,
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
|
|
||||||
BASE <%= ldap_basedn %>
|
BASE <%= ldap_basedn %>
|
||||||
URI <% ldap_server.each do |uri| %><%= uri %> <% end %>
|
URI <% ldap_server.each do |uri| %><%= uri %> <% end %>
|
||||||
TLS_REQCERT allow
|
TLS_REQCERT never
|
||||||
|
|
Loading…
Add table
Reference in a new issue