X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fsource.pp;h=f6647dfe76b1021e645871711d6a8e9a11b6af57;hb=396e11af3a0ee7d0b5820a136bdb17f2ea4bf41b;hp=196fc925866435dec0a3b038c8b65054542ea84e;hpb=57903418909c3c3344a4c4fa41c054e954451227;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/source.pp b/manifests/source.pp index 196fc92..f6647df 100644 --- a/manifests/source.pp +++ b/manifests/source.pp @@ -2,23 +2,29 @@ # add an apt source define apt::source( + $comment = $name, $ensure = present, $location = '', $release = 'UNDEF', $repos = 'main', $include_src = true, + $include_deb = true, $required_packages = false, $key = undef, $key_server = 'keyserver.ubuntu.com', $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 @@ -38,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'], }