]> gitweb.fluxo.info Git - puppet-apt.git/commit
Install unattended-upgrades after Exec[refresh_apt]
authorvarac <varacanero@zeromail.org>
Fri, 1 Feb 2013 10:01:23 +0000 (11:01 +0100)
committervarac <varacanero@zeromail.org>
Fri, 1 Feb 2013 14:52:29 +0000 (15:52 +0100)
commitf16a0727dce187d07389388da8b816f7b520205d
tree1fec074afc89f298d2f17ebeffb5e0d544611df8
parent6c135ea7bc2ae9951154cf5471801469e3e3d581
Install unattended-upgrades after Exec[refresh_apt]

Before, including apt::unattended_upgrades on a host without
the unattended-upgrades package would fail on the first run,
because the module tries to install the package before apt is
finally configured.
This commit does:

- introduce the option $refresh_apt for apt::apt_conf
  (Defaults to true). Can be used to not trigger Exec['refresh_apt']
- install the unattended-upgrades package after a final
  Exec['refresh_apt']. To not run into a loop, it calls
  Apt_conf['50unattended-upgrades'] with the option
  refresh_apt => false, which is also not needed for the configuration
manifests/apt_conf.pp
manifests/unattended_upgrades.pp