summaryrefslogtreecommitdiff
path: root/manifests/arch_builder.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-24 11:12:08 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-09 18:06:12 +0100
commite85271eb8f405ae29d7852050e8e89e0ed36bc53 (patch)
treef15f1709683d53b24512d286f55c0ed05c59a7aa /manifests/arch_builder.pp
parentBroke profiles into parts. (diff)
downloadprofiles-e85271eb8f405ae29d7852050e8e89e0ed36bc53.tar.gz
profiles-e85271eb8f405ae29d7852050e8e89e0ed36bc53.tar.xz
Add profile arch_builder.
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 %',
+ }
+
+}