]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Fix aura packager
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 18 Feb 2018 14:32:21 +0000 (15:32 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 18 Feb 2018 18:30:18 +0000 (19:30 +0100)
modules/aur/manifests/aura.pp
modules/aur/manifests/package.pp

index 1683cf8347c1953f25984145e2ee69ac3b6dcf4d..3e06f0a18289287924c713a775c67d0ae0816882 100644 (file)
@@ -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' })
 
index 2fd346e393c5fd510384436b7f788617b7f91284..5b55f248bb24eac213b7c82b39401c1824d36b23 100644 (file)
@@ -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',