diff options
Diffstat (limited to 'manifests/raspberry_builder.pp')
-rw-r--r-- | manifests/raspberry_builder.pp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/manifests/raspberry_builder.pp b/manifests/raspberry_builder.pp new file mode 100644 index 0000000..adb6dcc --- /dev/null +++ b/manifests/raspberry_builder.pp @@ -0,0 +1,26 @@ +# 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), + } +} |