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
and an acceptance test
[puppet-modules/puppetlabs-apt.git]
/
manifests
/
source.pp
diff --git
a/manifests/source.pp
b/manifests/source.pp
index 259d0ebb98993d26eacd83ce9db9cce2ac9012b3..f6647dfe76b1021e645871711d6a8e9a11b6af57 100644
(file)
--- a/
manifests/source.pp
+++ b/
manifests/source.pp
@@
-15,12
+15,16
@@
define apt::source(
$key_content = undef,
$key_source = undef,
$pin = false,
$key_content = undef,
$key_source = undef,
$pin = false,
- $architecture = undef
+ $architecture = undef,
+ $trusted_source = false,
) {
include apt::params
include apt::update
) {
include apt::params
include apt::update
+ validate_string($architecture)
+ validate_bool($trusted_source)
+
$sources_list_d = $apt::params::sources_list_d
$provider = $apt::params::provider
$sources_list_d = $apt::params::sources_list_d
$provider = $apt::params::provider
@@
-40,7
+44,7
@@
define apt::source(
owner => root,
group => root,
mode => '0644',
owner => root,
group => root,
mode => '0644',
- content => template(
"${module_name}/source.list.erb"
),
+ content => template(
'apt/_header.erb', 'apt/source.list.erb'
),
notify => Exec['apt_update'],
}
notify => Exec['apt_update'],
}