summaryrefslogtreecommitdiff
path: root/manifests/cron/base.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-06-29 15:49:22 +0000
committerintrigeri <intrigeri@boum.org>2016-06-29 15:59:20 +0000
commit5102b7863b09e58bdd712c9019885313270299ce (patch)
treedcdb9eaace31216984498d42bfe05bffdf37af11 /manifests/cron/base.pp
parenta8755365321bccf7a5c7a9a0fc9883b3176a1d37 (diff)
Drop apt::cron::download, and turn $apt_cron_hours into a class parameter for apt::cron::dist_upgrade.
I've introduced apt::cron::download, am not using it anymore, and have never seen anyone else submit a bug or a merge request for it. Thus, I feel pretty confident in dropping it. And this allows me to trivially get rid of the $apt_cron_hours global variable noticed by LeLutin in #13.
Diffstat (limited to 'manifests/cron/base.pp')
-rw-r--r--manifests/cron/base.pp20
1 files changed, 0 insertions, 20 deletions
diff --git a/manifests/cron/base.pp b/manifests/cron/base.pp
deleted file mode 100644
index 39fc306..0000000
--- a/manifests/cron/base.pp
+++ /dev/null
@@ -1,20 +0,0 @@
-class apt::cron::base {
-
- package { 'cron-apt': ensure => installed }
-
- case $apt_cron_hours {
- '': {}
- default: {
- # cron-apt defaults to run every night at 4 o'clock
- # so we try not to run at the same time.
- cron { 'apt_cron_every_N_hours':
- command => 'test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt',
- user => root,
- hour => "${apt_cron_hours}",
- minute => 10,
- require => Package['cron-apt'],
- }
- }
- }
-
-}