minor improvements, especially do not refresh apt every run
This commit is contained in:
parent
9d1a018eed
commit
e19c94dcd2
2 changed files with 7 additions and 7 deletions
4
README
4
README
|
@ -89,8 +89,8 @@ Example:
|
||||||
Resources
|
Resources
|
||||||
=========
|
=========
|
||||||
|
|
||||||
File[apt_config]
|
Concatenated_file[apt_config]
|
||||||
----------------
|
-----------------------------
|
||||||
Use this resource to depend on or add to a completed apt configuration
|
Use this resource to depend on or add to a completed apt configuration
|
||||||
|
|
||||||
Exec[apt_updated]
|
Exec[apt_updated]
|
||||||
|
|
|
@ -46,13 +46,13 @@ class apt {
|
||||||
'refresh_apt':
|
'refresh_apt':
|
||||||
command => '/usr/bin/apt-get update && sleep 1',
|
command => '/usr/bin/apt-get update && sleep 1',
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
subscribe => [ File["/etc/apt/sources.list"],
|
subscribe => File['/etc/apt/sources.list',
|
||||||
File["/etc/apt/apt.conf.d"],
|
'/etc/apt/apt.conf.d',
|
||||||
Concatenated_file[apt_config] ];
|
'/etc/apt/preferences'];
|
||||||
'update_apt':
|
'update_apt':
|
||||||
command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean',
|
command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean',
|
||||||
require => [ File["/etc/apt/sources.list"],
|
require => File['/etc/apt/sources.list',
|
||||||
File["/etc/apt/preferences"], Concatenated_file[apt_config] ],
|
'/etc/apt/preferences'],
|
||||||
loglevel => info,
|
loglevel => info,
|
||||||
# Another Semaphor for all packages to reference
|
# Another Semaphor for all packages to reference
|
||||||
alias => apt_updated;
|
alias => apt_updated;
|
||||||
|
|
Loading…
Reference in a new issue