From 026ff54db9a779f04d6b605452235ca7cb8d6970 Mon Sep 17 00:00:00 2001 From: "martin.cholewa" Date: Tue, 7 Oct 2025 06:10:29 +0200 Subject: [PATCH] iSCSI deploy --- .gitea/workflows/iSCSI243_DEPLOY.yaml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/iSCSI243_DEPLOY.yaml diff --git a/.gitea/workflows/iSCSI243_DEPLOY.yaml b/.gitea/workflows/iSCSI243_DEPLOY.yaml new file mode 100644 index 0000000..1bb340d --- /dev/null +++ b/.gitea/workflows/iSCSI243_DEPLOY.yaml @@ -0,0 +1,33 @@ +name: DEPLOY VM at proxmox + +on: + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + + - name: Deploying VM to Proxmox + uses: appleboy/ssh-action@v1.2.0 + with: + host: 192.168.11.102 + username: root + password: ${{ secrets.PASSWORD }} + port: 22 + script: | + pveversion + qm create 243 --name cloudINIT243 --memory 2048 --net0 virtio,bridge=vmbr0 --cores 2 --sockets 1 --ostype l26 + qm set 243 --bios seabios + qm importdisk 243 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img iSCSIsynology + qm set 243 --virtio0 iSCSIsynology:243/vm-243-disk-0.raw + qm set 243 --ide2 iSCSIsynology:cloudinit + qm set 243 --boot order=virtio0 + qm set 243 --ipconfig0 ip=192.168.11.243/24,gw=192.168.11.1 + qm set 243 --ciuser chs --cipassword genius + qm set 243 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZn0A7BiDckpYHS8qgphNHc7hpx4/Ml1iQ4KI1FTtpa Ansible key") + qm set 243 --agent enabled=1 + qm start 243 + qm resize 243 virtio0 +30G + \ No newline at end of file