summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Beaupre <anarcat@koumbit.org>2011-06-21 23:22:07 -0400
committerAntoine Beaupre <anarcat@koumbit.org>2011-06-21 23:22:07 -0400
commit453dc24971e1004b38e499480704fc9c947eeece (patch)
treeb70096ad6a09377a5bfd5c58dfda093839f0c6de
parentc2f32172700fd263f139fd98b34a7807daf57164 (diff)
downloadpuppet-reprepro-453dc24971e1004b38e499480704fc9c947eeece.tar.gz
puppet-reprepro-453dc24971e1004b38e499480704fc9c947eeece.tar.bz2
put cron in a separate class
-rw-r--r--manifests/init.pp10
1 files changed, 5 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 9058ca3..2c6b09c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -127,17 +127,17 @@ class reprepro {
refreshonly => true,
}
+# TODO: setup needeed lines in apache site config file
+
+}
+
+class reprepro::cron inherits reprepro {
cron { reprepro:
command => "/usr/bin/reprepro --silent -b $basedir processincoming incoming",
user => reprepro,
minute => '*/5',
require => [ Package['reprepro'], File["$basedir/conf/distributions"] ]
}
-
-# TODO: additional things this class could do
-# ensure it stays running
-# setup needeed lines in apache site config file
-
}
class reprepro::inotify inherits reprepro {