-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer.json
31 lines (31 loc) · 875 Bytes
/
packer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"variables": {
"img_mount_path": "/mnt/raspios"
},
"builders": [{
"type": "arm-image",
"iso_url" : "2024-11-19-raspios-bookworm-arm64-lite.img.xz",
"iso_checksum" : "6ac3a10a1f144c7e9d1f8e568d75ca809288280a593eb6ca053e49b539f465a4",
"target_image_size" : 5368709120,
"output_filename" : "/tmp/image",
"mount_path": "{{ user `img_mount_path` }}",
"disable_embedded": true,
"qemu_binary": "/usr/local/bin/qemu-aarch64-static"
}],
"provisioners": [{
"type": "shell-local",
"environment_vars": [
"LANG=C.UTF-8",
"LC_ALL=C.UTF-8"
],
"inline": [
"sudo -E ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook -i '{{ user `img_mount_path` }}', -v -c chroot playbook.yaml"
]
}],
"post-processors": [{
"type": "shell-local",
"inline": [
"mv /tmp/image pimba.img"
]
}]
}