Compare commits
	
		
			3 Commits
		
	
	
		
			main
			...
			9e19fd56ab
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					9e19fd56ab | ||
| 
						 | 
					3dfd046850 | ||
| 
						 | 
					2da11078f0 | 
@@ -2,6 +2,11 @@ name: DEPLOY VM at proxmox
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
on:
 | 
					on:
 | 
				
			||||||
  workflow_dispatch:
 | 
					  workflow_dispatch:
 | 
				
			||||||
 | 
					    inputs:
 | 
				
			||||||
 | 
					      vm_id:
 | 
				
			||||||
 | 
					        description: 'ID virtuálního stroje'
 | 
				
			||||||
 | 
					        required: true
 | 
				
			||||||
 | 
					        default: '244'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  deploy:
 | 
					  deploy:
 | 
				
			||||||
@@ -17,6 +22,7 @@ jobs:
 | 
				
			|||||||
          password: ${{ secrets.PASSWORD }}
 | 
					          password: ${{ secrets.PASSWORD }}
 | 
				
			||||||
          port: 22
 | 
					          port: 22
 | 
				
			||||||
          script: |
 | 
					          script: |
 | 
				
			||||||
 | 
					            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 create 244 --name k8s01DEViscsi --memory 12288 --net0 virtio,bridge=vmbr0 --cores 4 --sockets 2 --ostype l26
 | 
				
			||||||
            qm set 244 --bios seabios
 | 
					            qm set 244 --bios seabios
 | 
				
			||||||
@@ -30,4 +36,16 @@ jobs:
 | 
				
			|||||||
            qm set 244 --agent enabled=1
 | 
					            qm set 244 --agent enabled=1
 | 
				
			||||||
            qm resize 244 virtio0 +30G
 | 
					            qm resize 244 virtio0 +30G
 | 
				
			||||||
            qm start 244
 | 
					            qm start 244
 | 
				
			||||||
             
 | 
					             
 | 
				
			||||||
 | 
					            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 importdisk $vm_id /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img iSCSIsynologyLVM
 | 
				
			||||||
 | 
					            qm set $vm_id --virtio0 iSCSIsynologyLVM:$vm_id/vm-$vm_id-disk-0.raw
 | 
				
			||||||
 | 
					            qm set $vm_id --ide2 iSCSIsynologyLVM:cloudinit
 | 
				
			||||||
 | 
					            qm set $vm_id --boot order=virtio0
 | 
				
			||||||
 | 
					            qm set $vm_id --ipconfig0 ip=192.168.11.$((vm_id%255))/24,gw=192.168.11.1
 | 
				
			||||||
 | 
					            qm set $vm_id --ciuser chs --cipassword genius
 | 
				
			||||||
 | 
					            qm set $vm_id --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIZn0A7BiDckpYHS8qgphNHc7hpx4/Ml1iQ4KI1FTtpa Ansible key")
 | 
				
			||||||
 | 
					            qm set $vm_id --agent enabled=1
 | 
				
			||||||
 | 
					            qm start $vm_id
 | 
				
			||||||
 | 
					            qm resize $vm_id virtio0 +30G
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user