-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtalos.pkrvars.hcl
18 lines (18 loc) · 937 Bytes
/
talos.pkrvars.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name = "talos-template"
iso_file = "archlinux-2024.08.01-x86_64.iso"
iso_url = "https://www.archlinux.de/download/iso/2024.08.01/archlinux-2024.08.01-x86_64.iso"
iso_checksum = "file:https://www.archlinux.de/download/iso/2024.08.01/sha256sums.txt"
http_directory = "./http/talos"
ssh_username = "root"
boot_wait = "5s"
boot_command = [
"<enter><wait1m>",
"passwd<enter><wait>packer<enter><wait>packer<enter>",
]
provisioner = [
"curl -L http://$PACKER_HTTP_IP:$PACKER_HTTP_PORT/schematic.yaml -o schematic.yaml",
"export SCHEMATIC=$(curl -L -X POST --data-binary @schematic.yaml https://factory.talos.dev/schematics | grep -o '\"id\":\"[^\"]*' | grep -o '[^\"]*$')",
# renovate: githubReleaseVar repo=siderolabs/talos
"curl -L https://factory.talos.dev/image/$SCHEMATIC/v1.8.4/nocloud-amd64.raw.xz -o /tmp/talos.raw.xz",
"xz -d -c /tmp/talos.raw.xz | dd of=/dev/sda && sync"
]