mirror of
https://github.com/0x1d/terraform-docker-packer.git
synced 2025-12-16 14:35:06 +01:00
Example and docs
This commit is contained in:
9
examples/raspios/README.md
Normal file
9
examples/raspios/README.md
Normal 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
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1 +1,2 @@
|
||||
image_path = "rpi-arm64.img"
|
||||
scripts = ["scripts/pi.sh","scripts/docker.sh","scripts/hashi.sh"]
|
||||
|
||||
Reference in New Issue
Block a user