diff options
author | mh <mh@immerda.ch> | 2010-08-10 16:27:54 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-08-10 16:27:54 +0200 |
commit | 33f1b53c892c6a477014af211afe913888879398 (patch) | |
tree | b0c03b9585a2e3376f432fac7993f4c7ee4ba7e9 /manifests | |
parent | 604cef0cc93725118d34f16e9133d0cc81b12c79 (diff) |
improve exec naming
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 6 |
1 files 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, |