Fixed ldap::client::ruby for ubuntu and removed depencies for ldap_basedn variable.

This commit is contained in:
Timo Mkinen 2010-10-22 22:44:40 +03:00
parent f62951b13e
commit c7bc043522

View file

@ -61,7 +61,7 @@ class ldap::client {
# Install python ldap bindings.
#
class ldap::client::python inherits ldap::client {
class ldap::client::python {
package { "python-ldap":
name => $operatingsystem ? {
@ -76,9 +76,19 @@ class ldap::client::python inherits ldap::client {
# Install Ruby ldap bindings.
#
class ldap::client::ruby inherits ldap::client {
class ldap::client::ruby {
case $operatingsystem {
ubuntu: {
$pkgname = regsubst($rubyversion, '^([0-9]+\.[0-9]+)\..*', 'libldap-ruby\1')
}
default: {
$pkgname = "ruby-ldap"
}
}
package { "ruby-ldap":
name => $pkgname,
ensure => installed,
}