summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/unattended_upgrades.pp16
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
}
}