Fixed ldap::client::ruby for ubuntu and removed depencies for ldap_basedn variable.
This commit is contained in:
parent
f62951b13e
commit
c7bc043522
1 changed files with 12 additions and 2 deletions
|
@ -61,7 +61,7 @@ class ldap::client {
|
||||||
|
|
||||||
# Install python ldap bindings.
|
# Install python ldap bindings.
|
||||||
#
|
#
|
||||||
class ldap::client::python inherits ldap::client {
|
class ldap::client::python {
|
||||||
|
|
||||||
package { "python-ldap":
|
package { "python-ldap":
|
||||||
name => $operatingsystem ? {
|
name => $operatingsystem ? {
|
||||||
|
@ -76,9 +76,19 @@ class ldap::client::python inherits ldap::client {
|
||||||
|
|
||||||
# Install Ruby ldap bindings.
|
# 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":
|
package { "ruby-ldap":
|
||||||
|
name => $pkgname,
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue