feat(proxmox): automatic vm creation

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-04-26 21:58:58 +02:00
parent 0e8e07ed3e
commit f2ea03bc01
27 changed files with 247 additions and 90 deletions

View File

@@ -0,0 +1,8 @@
$ANSIBLE_VAULT;1.1;AES256
33333937646463646566653162383830616434336437623065363665323739633331346266333763
3364663264306665626465666133666161626333323462650a353366303331303837316133326135
33623862333036633438343538633161643333663632303362396438316638626338663935353337
3532323337663864640a333765653732393937396561373361393762386565353266343537306161
62303539333837666365323630303836373065343437663433616664376432313135636266663764
36616132383330656165656264346231323039626131646432323935306233643866366439313962
353837396234643739346662316239356134

View File

@@ -2,21 +2,18 @@ proxmox_api_user: root
proxmox_api_host: 192.168.20.12
proxmox_api_password: "{{ vault.pve.aya01.root.sudo }}"
proxmox_vms:
vms:
- name: "test-vm-00"
node: "inko"
vmid: 950
cores: 2
cpu: "x86-64-v2-AES"
memory: 8192 # in MiB
net:
net0: "virtio,bridge=vmbr0,firewall=1"
scsi:
scsi0: "proxmox:64,format=qcow2"
scsihw: "virtio-scsi-single"
ostype: "l26"
sshkeys: "{{ pubkey }}"
boot_image: "{{ proxmox_cloud_init_images.ubuntu.name }}"
ciuser: "{{ user }}"
sshkeys: "{{ pubkey }}"
disk_size: 32 # in Gb
proxmox_lxcs:
lxcs:
- name: "test-lxc-00"