e5d5123521
Signed-off-by: Mathias Merscher <Mathias.Merscher@dg-i.net>
20 lines
448 B
Puppet
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,
|
|
}
|
|
}
|