module-puppetlabs-apt/manifests/conf.pp
Daniele Sluijters d261d8f11b apt::setting: Parse type and name from title.
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.
2015-02-26 20:15:42 +01:00

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'),
}
}