diff options
author | varac <varacanero@zeromail.org> | 2013-09-05 18:29:26 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-09-05 18:29:26 +0200 |
commit | 64fb988c0e37d64fb3e241dc95f156072e43bf2a (patch) | |
tree | 5d4c18dc1bd3bb0fc7e2d805998e7635e834d200 | |
parent | 1a72a99693c1d77bfe891546408f88264fca98ee (diff) |
unattended-upgrades package cannot be installed (Bug #3098)
-rw-r--r-- | manifests/unattended_upgrades.pp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/manifests/unattended_upgrades.pp b/manifests/unattended_upgrades.pp index 80939e3..6e0e44a 100644 --- a/manifests/unattended_upgrades.pp +++ b/manifests/unattended_upgrades.pp @@ -1,15 +1,17 @@ class apt::unattended_upgrades { package { 'unattended-upgrades': - ensure => present + ensure => present, + require => Exec['refresh_apt'] } apt_conf { '50unattended-upgrades': - source => [ - "puppet:///modules/site_apt/${::lsbdistid}/50unattended-upgrades.${::lsbdistcodename}", - "puppet:///modules/site_apt/${::lsbdistid}/50unattended-upgrades", - "puppet:///modules/apt/${::lsbdistid}/50unattended-upgrades.${::lsbdistcodename}", - "puppet:///modules/apt/${::lsbdistid}/50unattended-upgrades" ], - require => Package['unattended-upgrades'], + source => [ + "puppet:///modules/site_apt/${::lsbdistid}/50unattended-upgrades.${::lsbdistcodename}", + "puppet:///modules/site_apt/${::lsbdistid}/50unattended-upgrades", + "puppet:///modules/apt/${::lsbdistid}/50unattended-upgrades.${::lsbdistcodename}", + "puppet:///modules/apt/${::lsbdistid}/50unattended-upgrades" ], + require => Package['unattended-upgrades'], + refresh_apt => false } } |