This website requires JavaScript.
Explore
Help
Register
Sign in
opuppet
/
module-apt
Watch
4
Star
0
Fork
You've already forked module-apt
0
Code
Issues
Pull requests
Releases
Wiki
Activity
c4a0aff2af
module-apt
/
manifests
/
update.pp
8 lines
91 B
ObjectPascal
Raw
Normal View
History
Unescape
Escape
[refactor] Unify `apt-get update` into one resource Before, there were two Execs that did an `apt-get update`, `Exec[refresh_apt]` and `Exec[apt_updated]`, which were triggered by different resources. This changes gets rid of the first one, and all resources now depend on `Exec[apt_updated]`.
2016-01-26 14:42:17 +01:00
class
apt
:
:
update
inherits
:
:
apt
{
Repair Exec['update_apt'] to run apt-get update when needed. Move this Exec to a dedicated class that is not included by default i.e. we default not to "apt-get update" on every Puppet run. We now make use of this class in the apt::upgrade_package define to make sure APT indexes are up-to-date before attempting package upgrades. One may now use the following to ensure current packages are installed by Package resources: include apt::update Package { require => Exec[apt_updated] }
2010-12-15 09:47:57 +01:00
[refactor] Unify `apt-get update` into one resource Before, there were two Execs that did an `apt-get update`, `Exec[refresh_apt]` and `Exec[apt_updated]`, which were triggered by different resources. This changes gets rid of the first one, and all resources now depend on `Exec[apt_updated]`.
2016-01-26 14:42:17 +01:00
Exec
[
'update_apt'
]
{
refreshonly
=
>
false
Repair Exec['update_apt'] to run apt-get update when needed. Move this Exec to a dedicated class that is not included by default i.e. we default not to "apt-get update" on every Puppet run. We now make use of this class in the apt::upgrade_package define to make sure APT indexes are up-to-date before attempting package upgrades. One may now use the following to ensure current packages are installed by Package resources: include apt::update Package { require => Exec[apt_updated] }
2010-12-15 09:47:57 +01:00
}
}
Reference in a new issue
Copy permalink