Fix: apt::ppa options parameter to pass options to apt-add-repository command
This commit is contained in:
parent
62e7faf18b
commit
878bc0217e
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
# ppa.pp
|
||||
|
||||
define apt::ppa(
|
||||
$release = $::lsbdistcodename
|
||||
$release = $::lsbdistcodename,
|
||||
$options = "-y"
|
||||
) {
|
||||
include apt::params
|
||||
include apt::update
|
||||
|
@ -40,7 +41,7 @@ define apt::ppa(
|
|||
}
|
||||
exec { "add-apt-repository-${name}":
|
||||
environment => $proxy_env,
|
||||
command => "/usr/bin/add-apt-repository ${name}",
|
||||
command => "/usr/bin/add-apt-repository ${options} ${name}",
|
||||
creates => "${sources_list_d}/${sources_list_d_filename}",
|
||||
logoutput => 'on_failure',
|
||||
require => [
|
||||
|
|
Loading…
Reference in a new issue