improve exec naming
This commit is contained in:
parent
604cef0cc9
commit
33f1b53c89
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue