Add a label/tag

This commit is contained in:
Stefan Bethke 2024-05-26 14:01:30 +02:00
parent af900b57ad
commit 1e181833ac

View file

@ -27,6 +27,7 @@ cleanup() {
} }
wget -4 https://git.hamburg.ccc.de/CCCHH/infrastructure-authorized-keys/raw/branch/trunk/authorized_keys -O authorized_keys
wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.tar.xz -O debian-12-generic-amd64.tar.xz wget https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.tar.xz -O debian-12-generic-amd64.tar.xz
wget https://cloud.debian.org/images/cloud/bookworm/latest/SHA512SUMS -O SHA512SUMS wget https://cloud.debian.org/images/cloud/bookworm/latest/SHA512SUMS -O SHA512SUMS
sha512sum --ignore-missing -c SHA512SUMS sha512sum --ignore-missing -c SHA512SUMS
@ -60,6 +61,6 @@ qm set ${VMID} --agent 1,fstrim_cloned_disks=1
qm set ${VMID} --ciuser chaos qm set ${VMID} --ciuser chaos
qm set ${VMID} --sshkeys ./authorized_keys qm set ${VMID} --sshkeys ./authorized_keys
qm set ${VMID} --ipconfig0 ip=dhcp qm set ${VMID} --ipconfig0 ip=dhcp
qm set ${VMID} --name ${NAME} qm set ${VMID} --name ${NAME} --tags debian12
qm cloudinit update ${VMID} qm cloudinit update ${VMID}
qm template ${VMID} qm template ${VMID}