d261d8f11b
Instead of having two additional parameters, `base_name` and `setting_type` simply parse it from `title`. We need to prefix most resources with `list-`, `conf-`, or `pref-` any way to avoid duplicate resources so we might as well leverage that.
11 lines
230 B
Puppet
11 lines
230 B
Puppet
define apt::conf (
|
|
$content,
|
|
$ensure = present,
|
|
$priority = '50',
|
|
) {
|
|
apt::setting { "conf-${name}":
|
|
ensure => $ensure,
|
|
priority => $priority,
|
|
content => template('apt/_header.erb', 'apt/conf.erb'),
|
|
}
|
|
}
|