module-apt/manifests/unattended_upgrades.pp

20 lines
463 B
ObjectPascal
Raw Normal View History

class apt::unattended_upgrades {
2010-12-07 19:18:41 +01:00
package { 'unattended-upgrades':
2009-10-30 23:15:46 +01:00
ensure => present,
2009-10-30 23:07:12 +01:00
require => undef,
}
apt_conf { "50unattended-upgrades":
source => ["puppet:///modules/site-apt/50unattended-upgrades",
"puppet:///modules/apt/50unattended-upgrades" ],
require => Package['unattended-upgrades'],
}
if $custom_preferences != false {
Apt_conf["50unattended-upgrades"] {
before => Concatenated_file[apt_config],
}
}
}