feat(proxmox): add k3s agents and refine VM provisioning

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-07-12 23:08:44 +02:00
parent 609e000089
commit dac0d88d60
7 changed files with 102 additions and 141 deletions

View File

@@ -1,20 +1,23 @@
$ANSIBLE_VAULT;1.1;AES256
35616266333838306161336339353538306634373132626132643732303066303163343630333630
6338393762616262303038373334663230383464643836370a656538393531393134616463643239
36383330653339393362353838313639333432643535643833396535653632376336613130646663
3532646538363137630a363731613235653935316531616430346264643837306434386333373033
33663135653931373963343734366562386263663939383536663439383537333264666233343233
62626162666538333435396638393338393734656131303065616534613733353335643939333765
38326237343337363064666530303664326563633262313432343030336266373437353837346461
63333363626164316638346635666537613963383537313965373638303732353365623166363736
31633239646262613539646637663664313337353465636366313338303439613638653530656631
62396536316561623736633631623336313537646138383431633538303163303261323864383538
38626338373332653561343036323236383337343037356366626230646432646538373836303063
61346339376561626630653562346439306561643664666437386562356535303264646338326261
33636536663161366635666264663539653037306339316233643662643134396636636162656333
36666139376263646130333263653335333165356462363434373439313330383331356138333431
31633362343639376436616339656561316433346532346533336261383433366366396261366134
35363264373335616165643665653466613434386630373232386261393464376361313131386462
33333531336334386562356338623233313862316232356562373561633364363263306465333439
37386631626538636365376464653837333662363361653237366161316431653266643238346336
363863376530613036313866323965326638
31643231626635633436363136386537616133326538323239663963346332383961396132316662
3938393638646562306634333932666663363363353264620a613833666634383061343565613364
38343537333930303563613839303265373339616463626133646365643630313339633765333231
6236306463616565350a626235666164303737646338363232336363336539656439316462643332
36346530306266616465643766333864356264386435383633356534663438376335643630613230
64313663613332666534623433653539653234646661636230616134353336663631313661333661
32666632363765613934353536343339306632666238626330663938313030633362316661656432
64393863356336343261663935373530346162323665303632646531613530393432393332663963
62303663613766613830383735643839353039663631333231343036636537643237643932656162
32396632316263646637653562386438613930313331653261373363386134663835313762646136
37623237636464613736353237313666656234303534623961666230393530386435393734376639
39366636623132326230396635376136383634306664336332663535366230653632613935383135
31383232386633666263666439306631373663613930623762343635376261316136656539323631
64393062623461383733316231633335303535363763633737373933656563623234353930323262
33623463613638306630653639646230396539383065336166643935346435363534353836626262
62393262646262323433373561303132336564353062396331623264333464346534626633333561
30636462646664656532393139636331376534643234663566633862373263306365643336343039
64343236303139626164656139613438623030633735666130346335626530373636666534616233
65626166386537333162393962666461613266366261316339356665643765376666393965613835
65376561383865336165343662333236653537666563613730666461633233356166653964333164
35646264653062396330373135363338346138353136626661643531323961316231356262363966
3636356230396130663531353437653034396534313863336134

View File

@@ -1,4 +1,4 @@
proxmox_api_host: 192.168.20.12
proxmox_api_user: root
proxmox_api_token_id: root@pam!terraform
proxmox_api_token_id: terraform
proxmox_api_token_secret: "{{ vault.pve.api.token_secret }}"

View File

@@ -45,36 +45,36 @@ vms:
ciuser: "{{ user }}"
sshkeys: "{{ pubkey }}"
disk_size: 64 # in Gb
# - name: "k3s-agent10"
# node: "naruto01"
# vmid: 210
# cores: 2
# memory: 4096 # in MiB
# net:
# net0: "virtio,bridge=vmbr0,firewall=1"
# boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
# ciuser: "{{ user }}"
# sshkeys: "{{ pubkey }}"
# disk_size: 64 # in Gb
# - name: "k3s-agent11"
# node: "lulu"
# vmid: 211
# cores: 2
# memory: 4096 # in MiB
# net:
# net0: "virtio,bridge=vmbr0,firewall=1"
# boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
# ciuser: "{{ user }}"
# sshkeys: "{{ pubkey }}"
# disk_size: 64 # in Gb
# - name: "k3s-agent12"
# node: "inko"
# vmid: 212
# cores: 2
# memory: 4096 # in MiB
# net:
# net0: "virtio,bridge=vmbr0,firewall=1"
# boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
# ciuser: "{{ user }}"
# sshkeys: "{{ pubkey }}"
# disk_size: 64 # in Gb
- name: "k3s-agent10"
node: "naruto01"
vmid: 210
cores: 2
memory: 4096 # in MiB
net:
net0: "virtio,bridge=vmbr0,firewall=1"
boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
ciuser: "{{ user }}"
sshkeys: "{{ pubkey }}"
disk_size: 64 # in Gb
- name: "k3s-agent11"
node: "lulu"
vmid: 211
cores: 2
memory: 4096 # in MiB
net:
net0: "virtio,bridge=vmbr0,firewall=1"
boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
ciuser: "{{ user }}"
sshkeys: "{{ pubkey }}"
disk_size: 64 # in Gb
- name: "k3s-agent12"
node: "inko"
vmid: 212
cores: 2
memory: 4096 # in MiB
net:
net0: "virtio,bridge=vmbr0,firewall=1"
boot_image: "{{ proxmox_cloud_init_images.debian.name }}"
ciuser: "{{ user }}"
sshkeys: "{{ pubkey }}"
disk_size: 64 # in Gb