]> gitweb.fluxo.info Git - puppet-reprepro.git/commitdiff
Removing reprepro::cron::disabled
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Jan 2013 13:06:38 +0000 (11:06 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Jan 2013 13:06:38 +0000 (11:06 -0200)
manifests/cron/disabled.pp [deleted file]
manifests/disabled.pp
manifests/purged.pp

diff --git a/manifests/cron/disabled.pp b/manifests/cron/disabled.pp
deleted file mode 100644 (file)
index dd3062c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-class reprepro::cron::disabled inherits reprepro::cron {
-  Cron['reprepro'] {
-    ensure  => absent,
-    require => undef,
-  }
-}
index 1d41261da0d9f012f036c25dc3e4df5fa9551f16..9c822fcc3294b8324d23fc2f9f708b1894b2827d 100644 (file)
@@ -1,3 +1,9 @@
 class reprepro::disabled(
   $basedir   = '/srv/reprepro'
-) { }
+) {
+  cron { reprepro:
+    command => "/usr/bin/reprepro --silent -b ${reprepro::basedir} processincoming incoming",
+    user    => reprepro,
+    ensure  => absent,
+  }
+}
index 342bb19392ca2c4f3b888c9ed1244a3985153dd7..f5cb5d525e2fadf4b730ba43ad9f73fda152930c 100644 (file)
@@ -79,5 +79,11 @@ class reprepro::purged(
     group   => root,
     mode    => 755,
   }
+
+  cron { reprepro:
+    command => "/usr/bin/reprepro --silent -b ${reprepro::basedir} processincoming incoming",
+    user    => reprepro,
+    ensure  => absent,
+  }
 }