From 1dca26e507d12b9a38e8740e2c310c8bee4e173c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 18 Feb 2018 15:32:21 +0100 Subject: Fix aura packager --- modules/aur/manifests/aura.pp | 4 ++++ modules/aur/manifests/package.pp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/aur/manifests/aura.pp b/modules/aur/manifests/aura.pp index 1683cf8..3e06f0a 100644 --- a/modules/aur/manifests/aura.pp +++ b/modules/aur/manifests/aura.pp @@ -6,6 +6,10 @@ class aur::aura( ensure => "present" } + sudo::conf { 'aur-builder': + content => "aur-builder ALL=(root) NOPASSWD: /usr/bin/aura *" + } + ensure_packages(['base-devel'], { 'install_options' => '--needed' }) ensure_packages(['gmp', 'pcre'], { 'install_options' => '--asdeps' }) diff --git a/modules/aur/manifests/package.pp b/modules/aur/manifests/package.pp index 2fd346e..5b55f24 100644 --- a/modules/aur/manifests/package.pp +++ b/modules/aur/manifests/package.pp @@ -7,7 +7,7 @@ define aur::package ( exec { "pacman::aur::install::${name}": cwd => "/tmp", require => Class[aur::aura], - command => "/usr/bin/aura -A ${name}", + command => "/usr/bin/sudo /usr/bin/aura --noconfirm -A ${name}", user => "aur-builder", unless => "/usr/bin/aura -Qk ${name}", logoutput => 'on_failure', @@ -18,7 +18,7 @@ define aur::package ( exec { "pacman::aur::remove::${name}": cwd => "/tmp", require => Class[aur::aura], - command => "/usr/bin/aura -Rs ${name}", + command => "/usr/bin/sudo /usr/bin/aura --noconfirm -Rs ${name}", user => "aur-builder", onlyif => "/usr/bin/aura -Qi ${name}", logoutput => 'on_failure', -- cgit v1.2.3