Compare commits
2 Commits
010296b5be
...
65a8fd2bf5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
65a8fd2bf5 | ||
|
|
bc48a073fd |
32
.gitea/workflows/150_DEPLOY_cloudINIT150.yaml
Normal file
32
.gitea/workflows/150_DEPLOY_cloudINIT150.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
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 140 --name cloudINIT140 --memory 2048 --net0 virtio,bridge=vmbr0 --cores 2 --sockets 1 --ostype l26
|
||||||
|
qm set 140 --bios seabios
|
||||||
|
qm importdisk 140 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img smallDisk
|
||||||
|
qm set 140 --virtio0 smallDisk:140/vm-140-disk-0.raw
|
||||||
|
qm set 140 --ide2 smallDisk:cloudinit
|
||||||
|
qm set 140 --boot order=virtio0
|
||||||
|
qm set 140 --ipconfig0 ip=192.168.11.240/24,gw=192.168.11.1
|
||||||
|
qm set 140 --ciuser chs --cipassword genius
|
||||||
|
qm set 140 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAE39D/Dep3EHMWXB6wiMTL0My1SlMZVk0Y80jEv7LOb xchose@freya.local")
|
||||||
|
qm start 140
|
||||||
|
qm resize 140 virtio0 +30G
|
||||||
|
|
||||||
32
.gitea/workflows/150_DEPLOY_saltmaster.yaml
Normal file
32
.gitea/workflows/150_DEPLOY_saltmaster.yaml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
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 150 --name saltmaster --memory 2048 --net0 virtio,bridge=vmbr0 --cores 2 --sockets 1 --ostype l26
|
||||||
|
qm set 150 --bios seabios
|
||||||
|
qm importdisk 150 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img smallDisk
|
||||||
|
qm set 150 --virtio0 smallDisk:150/vm-150-disk-0.raw
|
||||||
|
qm set 150 --ide2 smallDisk:cloudinit
|
||||||
|
qm set 150 --boot order=virtio0
|
||||||
|
qm set 150 --ipconfig0 ip=192.168.11.241/24,gw=192.168.11.1
|
||||||
|
qm set 150 --ciuser chs --cipassword genius
|
||||||
|
qm set 150 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAE39D/Dep3EHMWXB6wiMTL0My1SlMZVk0Y80jEv7LOb xchose@freya.local")
|
||||||
|
qm start 150
|
||||||
|
qm resize 150 virtio0 +30G
|
||||||
|
|
||||||
Reference in New Issue
Block a user