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 a344cb36..e155ddf6 100644 --- a/modules/openssh/manifests/ssh_keys_from_ldap.pp +++ b/modules/openssh/manifests/ssh_keys_from_ldap.pp @@ -10,7 +10,11 @@ if versioncmp($::lsbdistrelease, '7') < 0 { $ldap_servers = get_ldap_servers() mga_common::local_script { 'ldap-sshkey2file.py': content => template('openssh/ldap-sshkey2file.py'), +if versioncmp($::lsbdistrelease, '7') < 0 { + require => Package['python2-ldap'] +} else { require => Package['python-ldap'] +} } cron { 'sshkey2file': |