From d0fbf5ba42e196f40e65e7f1afa80b4115c31f31 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 26 Jan 2013 11:06:38 -0200 Subject: Removing reprepro::cron::disabled --- manifests/cron/disabled.pp | 6 ------ manifests/disabled.pp | 8 +++++++- manifests/purged.pp | 6 ++++++ 3 files changed, 13 insertions(+), 7 deletions(-) delete mode 100644 manifests/cron/disabled.pp 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, + } } -- cgit v1.2.3