From 810f9f70e23ed298780f4300cf348f89d799c78f Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 24 May 2011 13:10:56 +0000 Subject: add cron for ldap-sshkey2file every 10 minutes --- modules/openssh/manifests/init.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules/openssh') 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], + } } } -- cgit v1.2.1