From 64fb988c0e37d64fb3e241dc95f156072e43bf2a Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 5 Sep 2013 18:29:26 +0200 Subject: unattended-upgrades package cannot be installed (Bug #3098) --- manifests/unattended_upgrades.pp | 16 +++++++++------- 1 file 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 } } -- cgit v1.2.3