module-apt/manifests/unattended_upgrades.pp
Gabriel Filion ac76a5d52d Add apt_conf_snippet and use it where possible
With the new define, it's easy to add an apt.conf snippet in apt.conf.d
It accepts either 'sources' to get a static file or 'content' to define
content inline or with the help of a template.

Put it to use where we create files in apt.conf.d

Finally, fix the dependancy to the apt_config file (however, I don't see
the need for this dependancy)

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-24 09:17:09 -04:00

14 lines
380 B
Puppet

class apt::unattended_upgrades {
package{'unattended-upgrades':
ensure => present,
require => undef,
}
apt_conf_snippet { "50unattended-upgrades":
source => ["puppet:///modules/site-apt/50unattended-upgrades",
"puppet:///modules/apt/50unattended-upgrades" ],
before => Concatenated_file[apt_config],
require => Package['unattended-upgrades'],
}
}