aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2013-10-16 16:07:19 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2013-10-16 16:07:19 -0400
commitdb082697788659730e91aa34fa293b8cab7029d9 (patch)
tree1111bd8843428b1952b1074e100f98e30a80c79d
parentdc884e878793fccf3439ce58c68ad104943ad061 (diff)
downloadpuppet-monkeysphere-db082697788659730e91aa34fa293b8cab7029d9.tar.gz
puppet-monkeysphere-db082697788659730e91aa34fa293b8cab7029d9.tar.bz2
move away from debian-specific cron.d towards standard cron type
-rw-r--r--files/etc/cron.d/update-monkeysphere-auth1
-rw-r--r--manifests/sshserver.pp10
2 files changed, 4 insertions, 7 deletions
diff --git a/files/etc/cron.d/update-monkeysphere-auth b/files/etc/cron.d/update-monkeysphere-auth
deleted file mode 100644
index 06bb5ae..0000000
--- a/files/etc/cron.d/update-monkeysphere-auth
+++ /dev/null
@@ -1 +0,0 @@
-*/5 * * * * root /usr/sbin/monkeysphere-authentication update-users
diff --git a/manifests/sshserver.pp b/manifests/sshserver.pp
index 43c0f6f..43f6a3d 100644
--- a/manifests/sshserver.pp
+++ b/manifests/sshserver.pp
@@ -10,12 +10,10 @@ class monkeysphere::sshserver {
}
}
- file{'/etc/cron.d/update-monkeysphere-auth':
- ensure => present,
- source => 'puppet:///modules/monkeysphere/etc/cron.d/update-monkeysphere-auth',
+ cron {'update-monkeysphere-auth':
+ command => '/usr/sbin/monkeysphere-authentication update-users',
+ user => root,
+ minute => '*/5',
require => Package['monkeysphere'],
- mode => '0644',
- owner => root,
- group => root,
}
}