diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openssh/manifests/init.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/openssh/manifests/init.pp b/modules/openssh/manifests/init.pp index de33f72e..8d18baff 100644 --- a/modules/openssh/manifests/init.pp +++ b/modules/openssh/manifests/init.pp @@ -56,8 +56,9 @@ class openssh { mode => 700, } + $sshkey2file = "/usr/local/bin/ldap-sshkey2file.py" $ldap_pwfile = "/etc/ldap.secret" - file { '/usr/local/bin/ldap-sshkey2file.py': + file { $sshkey2file: ensure => present, owner => root, group => root, @@ -65,5 +66,13 @@ class openssh { content => template("restrictshell/ldap-sshkey2file.py"), require => Package['python-ldap'] } + cron { 'sshkey2file': + command => $sshkey2file, + hour => "*", + minute => */10, + user => root, + environment => "MAILTO=root", + require => File[$sshkey2file], + } } } |