Example and docs

This commit is contained in:
2025-04-22 15:42:18 +02:00
parent a783782187
commit 699d910895
7 changed files with 71 additions and 17 deletions

View File

@@ -0,0 +1,9 @@
# RaspiOS
Build a new RaspiOS device image.
The Packer config will run some scripts through the Shell provisioner in order to setup and configure the device image.
## Firstboot
This example contains a Systemd service and script that will run at first boot and sets the hostname to `rpi-SERIAL`.
Adopted from https://github.com/nmcclain/raspberian-firstboot

View File

@@ -1,9 +1,12 @@
module "raspios" {
source = "../../"
packer_config = "packer/raspios.pkr.hcl"
provisioning_scripts = [
"scripts/pi.sh",
"scripts/docker.sh",
"scripts/hashi.sh"
]
packer_variables = {
image_path = "rpi-arm64.img"
scripts = [
"scripts/pi.sh",
"scripts/docker.sh",
"scripts/hashi.sh"
]
}
}

View File

@@ -1 +1,2 @@
image_path = "rpi-arm64.img"
scripts = ["scripts/pi.sh","scripts/docker.sh","scripts/hashi.sh"]