parametrized

This commit is contained in:
Martin Cholewa
2025-10-07 13:16:59 +02:00
parent 9e19fd56ab
commit d76af08d35

View File

@@ -24,19 +24,6 @@ jobs:
script: | script: |
vm_id=${{ github.event.inputs.vm_id }} vm_id=${{ github.event.inputs.vm_id }}
pveversion pveversion
qm create 244 --name k8s01DEViscsi --memory 12288 --net0 virtio,bridge=vmbr0 --cores 4 --sockets 2 --ostype l26
qm set 244 --bios seabios
qm importdisk 244 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img iSCSIsynologyLVM
qm set 244 --virtio0 iSCSIsynologyLVM:vm-244-disk-0
qm set 244 --ide2 iSCSIsynologyLVM:cloudinit
qm set 244 --boot order=virtio0
qm set 244 --ipconfig0 ip=192.168.11.244/24,gw=192.168.11.1
qm set 244 --ciuser chs --cipassword genius
qm set 244 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZn0A7BiDckpYHS8qgphNHc7hpx4/Ml1iQ4KI1FTtpa Ansible key")
qm set 244 --agent enabled=1
qm resize 244 virtio0 +30G
qm start 244
qm create $vm_id --name k8s01DEV --memory 12288 --net0 virtio,bridge=vmbr0 --cores 4 --sockets 2 --ostype l26 qm create $vm_id --name k8s01DEV --memory 12288 --net0 virtio,bridge=vmbr0 --cores 4 --sockets 2 --ostype l26
qm set $vm_id --bios seabios qm set $vm_id --bios seabios
qm importdisk $vm_id /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img iSCSIsynologyLVM qm importdisk $vm_id /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img iSCSIsynologyLVM