aboutsummaryrefslogtreecommitdiff
path: root/modules/aur
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-18 19:31:16 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-02-18 19:31:16 +0100
commitaea8c51549e56f6d0ced3072fae9d61b6a87e6e4 (patch)
tree51c7e2c7b2bafb475a07934caba6076490ecf29b /modules/aur
parent159db2fd0619f93d330bbe9815ece76beca34aba (diff)
parent159df176f990fd1f819efcfd431677b78f367697 (diff)
downloadPuppet-aea8c51549e56f6d0ced3072fae9d61b6a87e6e4.tar.gz
Puppet-aea8c51549e56f6d0ced3072fae9d61b6a87e6e4.tar.zst
Puppet-aea8c51549e56f6d0ced3072fae9d61b6a87e6e4.zip
Merge branch 'cryptoportfolio'
Diffstat (limited to 'modules/aur')
-rw-r--r--modules/aur/manifests/aura.pp4
-rw-r--r--modules/aur/manifests/package.pp4
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(
6 ensure => "present" 6 ensure => "present"
7 } 7 }
8 8
9 sudo::conf { 'aur-builder':
10 content => "aur-builder ALL=(root) NOPASSWD: /usr/bin/aura *"
11 }
12
9 ensure_packages(['base-devel'], { 'install_options' => '--needed' }) 13 ensure_packages(['base-devel'], { 'install_options' => '--needed' })
10 ensure_packages(['gmp', 'pcre'], { 'install_options' => '--asdeps' }) 14 ensure_packages(['gmp', 'pcre'], { 'install_options' => '--asdeps' })
11 15
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 (
7 exec { "pacman::aur::install::${name}": 7 exec { "pacman::aur::install::${name}":
8 cwd => "/tmp", 8 cwd => "/tmp",
9 require => Class[aur::aura], 9 require => Class[aur::aura],
10 command => "/usr/bin/aura -A ${name}", 10 command => "/usr/bin/sudo /usr/bin/aura --noconfirm -A ${name}",
11 user => "aur-builder", 11 user => "aur-builder",
12 unless => "/usr/bin/aura -Qk ${name}", 12 unless => "/usr/bin/aura -Qk ${name}",
13 logoutput => 'on_failure', 13 logoutput => 'on_failure',
@@ -18,7 +18,7 @@ define aur::package (
18 exec { "pacman::aur::remove::${name}": 18 exec { "pacman::aur::remove::${name}":
19 cwd => "/tmp", 19 cwd => "/tmp",
20 require => Class[aur::aura], 20 require => Class[aur::aura],
21 command => "/usr/bin/aura -Rs ${name}", 21 command => "/usr/bin/sudo /usr/bin/aura --noconfirm -Rs ${name}",
22 user => "aur-builder", 22 user => "aur-builder",
23 onlyif => "/usr/bin/aura -Qi ${name}", 23 onlyif => "/usr/bin/aura -Qi ${name}",
24 logoutput => 'on_failure', 24 logoutput => 'on_failure',