18 lines
357 B
Puppet
18 lines
357 B
Puppet
define apt::conf (
|
|
$content = undef,
|
|
$ensure = present,
|
|
$priority = '50',
|
|
) {
|
|
|
|
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'),
|
|
}
|
|
}
|