Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Iterate through multiple keys
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
conf.pp
1
define apt::conf (
2
$content = undef,
3
$ensure = present,
4
$priority = '50',
5
) {
6
7
unless $ensure == 'absent' {
8
unless $content {
9
fail('Need to pass in content parameter')
10
}
11
}
12
13
apt::setting { "conf-${name}":
14
ensure => $ensure,
15
priority => $priority,
16
content => template('apt/_header.erb', 'apt/conf.erb'),
17
}
18
}