summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-05 22:41:29 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-09 18:06:58 +0100
commit76de5a7dfa9dcaafddd12e9c6e4e3a6529e7e7c6 (patch)
treea44c3ad174e8715a110d34e6f70b513224ef197a
parentAdd timer to aur-builder. (diff)
downloadprofiles-76de5a7dfa9dcaafddd12e9c6e4e3a6529e7e7c6.tar.gz
profiles-76de5a7dfa9dcaafddd12e9c6e4e3a6529e7e7c6.tar.xz
Move all raspberry builder stuff into profile.
-rw-r--r--manifests/raspberry_builder.pp32
1 files changed, 9 insertions, 23 deletions
diff --git a/manifests/raspberry_builder.pp b/manifests/raspberry_builder.pp
index adb6dcc..5e97be7 100644
--- a/manifests/raspberry_builder.pp
+++ b/manifests/raspberry_builder.pp
@@ -1,26 +1,12 @@
# Sets up a machine for building raspberry pi images
-class profiles::raspberry_builder (
- $raspberry_roots = '/usr/local/raspberry-pi',
- # $raspberry_boots,
- Array[Hash] $targets,
-) {
-
- # http://raspbian.raspberrypi.org/raspbian/dists/bullseye/Release.gpg
- # 76754c89a543b57b2d9502b77fbc72d17bb14d0fb64512da5404bc18116957d3 Release.gpg
-
- # Prepare directory for Raspberry OS
-
- # file { "${root}/etc/debian_chroot":
- # ensure => file,
- # content => "raspberry-pi\n",
- # }
-
- class { 'raspberry::builder':
- targets => $targets.map |$h| {
- [ $h['name'], {
- target_dir => "${raspberry_roots}/${h['name']}" ,
- } + $h
- ]
- }.convert_to(Hash),
+class profiles::raspberry_builder {
+ ensure_packages([
+ 'debootstrap',
+ 'qemu-user-static',
+ ])
+
+ service { 'binfmt-support':
+ enable => true,
+ subscribe => Package['qemu-user-static'],
}
}