diff options
-rw-r--r-- | modules/openssh/manifests/ssh_keys_from_ldap.pp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/openssh/manifests/ssh_keys_from_ldap.pp b/modules/openssh/manifests/ssh_keys_from_ldap.pp index 3004bc52..deb05d66 100644 --- a/modules/openssh/manifests/ssh_keys_from_ldap.pp +++ b/modules/openssh/manifests/ssh_keys_from_ldap.pp @@ -1,5 +1,9 @@ class openssh::ssh_keys_from_ldap inherits server { +if versioncmp($::lsbdistrelease, '7') < 0 { package { 'python-ldap': } +} else { + package { 'python2-ldap': } +} $ldap_pwfile = '/etc/ldap.secret' $nslcd_conf_file = '/etc/nslcd.conf' |