module-puppetlabs-apt/manifests/conf.pp
Mathias Merscher e5d5123521 apt::setting expects priority to be an integer, set defaults accordingly
Signed-off-by: Mathias Merscher <Mathias.Merscher@dg-i.net>
2016-04-19 12:31:00 +02:00

20 lines
448 B
Puppet

define apt::conf (
$content = undef,
$ensure = present,
$priority = 50,
$notify_update = undef,
) {
unless $ensure == 'absent' {
unless $content {
fail('Need to pass in content parameter')
}
}
apt::setting { "conf-${name}":
ensure => $ensure,
priority => $priority,
content => template('apt/_conf_header.erb', 'apt/conf.erb'),
notify_update => $notify_update,
}
}