X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;h=f6647dfe76b1021e645871711d6a8e9a11b6af57;hb=396e11af3a0ee7d0b5820a136bdb17f2ea4bf41b;hp=259d0ebb98993d26eacd83ce9db9cce2ac9012b3;hpb=f4dd4f8ab50d9015552befa44ba613cfa15fb72e;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index 259d0eb..f6647df 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -15,12 +15,16 @@ define apt::source( $key_content = undef, $key_source = undef, $pin = false, - $architecture = undef + $architecture = undef, + $trusted_source = false, ) { 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 @@ -40,7 +44,7 @@ define apt::source( 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'], }