From: Tsuharesu Luciel Date: Mon, 30 Dec 2013 18:01:56 +0000 (-0200) Subject: (#201) Use root to exec X-Git-Tag: 1.4.1~10^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=2f6edabc4c0757d5ccca63b4ebd9af215c5167d5;p=puppet-modules%2Fpuppetlabs-apt.git (#201) Use root to exec User root is needed to execute this command. If someone changes the default Exec user, apt-add-repository will fail. --- diff --git a/manifests/ppa.pp b/manifests/ppa.pp index 730bf7d..f929654 100644 --- a/manifests/ppa.pp +++ b/manifests/ppa.pp @@ -45,6 +45,7 @@ define apt::ppa( environment => $proxy_env, command => "/usr/bin/add-apt-repository ${options} ${name}", unless => "/usr/bin/test -s ${sources_list_d}/${sources_list_d_filename}", + user => 'root', logoutput => 'on_failure', notify => Exec['apt_update'], require => [