Fix: apt::ppa options parameter to pass options to apt-add-repository command

This commit is contained in:
Oleiade 2013-07-16 15:31:19 +02:00
parent 62e7faf18b
commit 878bc0217e

View file

@ -1,7 +1,8 @@
# ppa.pp # ppa.pp
define apt::ppa( define apt::ppa(
$release = $::lsbdistcodename $release = $::lsbdistcodename,
$options = "-y"
) { ) {
include apt::params include apt::params
include apt::update include apt::update
@ -40,7 +41,7 @@ define apt::ppa(
} }
exec { "add-apt-repository-${name}": exec { "add-apt-repository-${name}":
environment => $proxy_env, 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}", creates => "${sources_list_d}/${sources_list_d_filename}",
logoutput => 'on_failure', logoutput => 'on_failure',
require => [ require => [