]> gitweb.fluxo.info Git - puppet-reprepro.git/commitdiff
put cron in a separate class
authorAntoine Beaupre <anarcat@koumbit.org>
Wed, 22 Jun 2011 03:22:07 +0000 (23:22 -0400)
committerAntoine Beaupre <anarcat@koumbit.org>
Wed, 22 Jun 2011 03:22:07 +0000 (23:22 -0400)
manifests/init.pp

index 9058ca38e7129a6ee8bd1d6efdd5a33715e87280..2c6b09c86d554bc2ae584ea7a2704ad821cb9402 100644 (file)
@@ -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 {