From 2f6edabc4c0757d5ccca63b4ebd9af215c5167d5 Mon Sep 17 00:00:00 2001 From: Tsuharesu Luciel Date: Mon, 30 Dec 2013 16:01:56 -0200 Subject: [PATCH] (#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. --- manifests/ppa.pp | 1 + 1 file changed, 1 insertion(+) 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 => [ -- 2.45.2