From 33f1b53c892c6a477014af211afe913888879398 Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 10 Aug 2010 16:27:54 +0200 Subject: improve exec naming --- manifests/init.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index d1f5cfe..af860f7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -54,13 +54,15 @@ class apt { exec { # "&& sleep 1" is workaround for older(?) clients - "/usr/bin/apt-get update && sleep 1 #on refresh": + 'refresh_apt': + command => '/usr/bin/apt-get update && sleep 1', refreshonly => true, subscribe => [ File["/etc/apt/sources.list"], File["/etc/apt/preferences"], File["/etc/apt/apt.conf.d"], Config_file[apt_config] ]; - "/usr/bin/apt-get update && /usr/bin/apt-get autoclean #hourly": + 'update_apt': + command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean', require => [ File["/etc/apt/sources.list"], File["/etc/apt/preferences"], Config_file[apt_config] ], loglevel => info, -- cgit v1.2.3