summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/cron/disabled.pp6
-rw-r--r--manifests/disabled.pp8
-rw-r--r--manifests/purged.pp6
3 files changed, 13 insertions, 7 deletions
diff --git a/manifests/cron/disabled.pp b/manifests/cron/disabled.pp
deleted file mode 100644
index dd3062c..0000000
--- a/manifests/cron/disabled.pp
+++ /dev/null
@@ -1,6 +0,0 @@
-class reprepro::cron::disabled inherits reprepro::cron {
- Cron['reprepro'] {
- ensure => absent,
- require => undef,
- }
-}
diff --git a/manifests/disabled.pp b/manifests/disabled.pp
index 1d41261..9c822fc 100644
--- a/manifests/disabled.pp
+++ b/manifests/disabled.pp
@@ -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,
+ }
+}
diff --git a/manifests/purged.pp b/manifests/purged.pp
index 342bb19..f5cb5d5 100644
--- a/manifests/purged.pp
+++ b/manifests/purged.pp
@@ -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,
+ }
}