module-apt/manifests/unattended_upgrades.pp
mh 0cb3cd816e Migrate - in class names to _
In newer puppet releases the old way to name class/modules with a -,
won't anymore be supported.

Conflicts:

	manifests/unattended_upgrades.pp
2012-06-08 15:07:48 +02:00

21 lines
589 B
Puppet

class apt::unattended_upgrades {
package { 'unattended-upgrades':
ensure => present,
require => undef,
}
apt_conf { "50unattended-upgrades":
source => ["puppet:///modules/site_apt/$lsbdistcodename/50unattended-upgrades",
"puppet:///modules/site_apt/50unattended-upgrades",
"puppet:///modules/apt/$lsbdistcodename/50unattended-upgrades",
"puppet:///modules/apt/50unattended-upgrades" ],
require => Package['unattended-upgrades'],
}
if $custom_preferences != false {
Apt_conf["50unattended-upgrades"] {
before => Concat[apt_config],
}
}
}