Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge pull request #572 from twc-openstack/master-tempfile-race-condition
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
init.pp
diff --git
a/manifests/init.pp
b/manifests/init.pp
index b9087cfb7abae68714edd30ab66c2c28df5216d5..2e82502622126488f41c8f312c6fc247148c6e6c 100644
(file)
--- a/
manifests/init.pp
+++ b/
manifests/init.pp
@@
-6,6
+6,7
@@
class apt(
$sources = {},
$keys = {},
$ppas = {},
$sources = {},
$keys = {},
$ppas = {},
+ $pins = {},
$settings = {},
) inherits ::apt::params {
$settings = {},
) inherits ::apt::params {
@@
-66,6
+67,7
@@
class apt(
validate_hash($keys)
validate_hash($settings)
validate_hash($ppas)
validate_hash($keys)
validate_hash($settings)
validate_hash($ppas)
+ validate_hash($pins)
if $_proxy['ensure'] == 'absent' or $_proxy['host'] {
apt::setting { 'conf-proxy':
if $_proxy['ensure'] == 'absent' or $_proxy['host'] {
apt::setting { 'conf-proxy':
@@
-153,4
+155,9
@@
class apt(
if $settings {
create_resources('apt::setting', $settings)
}
if $settings {
create_resources('apt::setting', $settings)
}
+
+ # manage pins if present
+ if $pins {
+ create_resources('apt::pin', $pins)
+ }
}
}