19 lines
463 B
Puppet
19 lines
463 B
Puppet
class apt::unattended_upgrades {
|
|
|
|
package { 'unattended-upgrades':
|
|
ensure => present,
|
|
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],
|
|
}
|
|
}
|
|
}
|