diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-05-24 13:10:56 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-05-24 13:10:56 +0000 |
commit | 810f9f70e23ed298780f4300cf348f89d799c78f (patch) | |
tree | 015612fdf372d2de4b49e52e47087e17096377f8 /modules/openssh | |
parent | 9f83a363b5e614071448d49d6031f7233ba648d6 (diff) | |
download | puppet-810f9f70e23ed298780f4300cf348f89d799c78f.tar puppet-810f9f70e23ed298780f4300cf348f89d799c78f.tar.gz puppet-810f9f70e23ed298780f4300cf348f89d799c78f.tar.bz2 puppet-810f9f70e23ed298780f4300cf348f89d799c78f.tar.xz puppet-810f9f70e23ed298780f4300cf348f89d799c78f.zip |
add cron for ldap-sshkey2file every 10 minutes
Diffstat (limited to 'modules/openssh')
-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], + } } } |