From: Silvio Rhatto Date: Sat, 26 Jan 2013 13:06:38 +0000 (-0200) Subject: Removing reprepro::cron::disabled X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d0fbf5ba42e196f40e65e7f1afa80b4115c31f31;p=puppet-reprepro.git Removing reprepro::cron::disabled --- 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, + } }