summaryrefslogtreecommitdiff
path: root/manifests/arch_builder.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/arch_builder.pp')
-rw-r--r--manifests/arch_builder.pp23
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/arch_builder.pp b/manifests/arch_builder.pp
new file mode 100644
index 0000000..5d3fc23
--- /dev/null
+++ b/manifests/arch_builder.pp
@@ -0,0 +1,23 @@
+class profiles::arch_builder {
+ include ::profiles::repo
+ include ::profiles::sudo
+
+ ensure_packages([
+ 'base',
+ 'base-devel',
+ # 'auracle-git',
+ ])
+
+ $aur_builder = 'aur-builder'
+
+ user { $aur_builder:
+ system => true,
+ home => '/usr/local/aur',
+ }
+
+ file { '/etc/sudoers.d/aur_builder':
+ content => "${aur_builder} ALL=(ALL) NOPASSWD: /usr/bin/pacman\n",
+ validate_cmd => '/usr/bin/visudo -cf %',
+ }
+
+}