This commit is contained in:
Mike McFetridge
2026-07-20 09:23:17 -04:00
parent c1315882da
commit 72272e4006
3179 changed files with 562960 additions and 14 deletions
+77
View File
@@ -0,0 +1,77 @@
resource "proxmox_vm_qemu" "<< resource_name >>" {
name = "<< vm_name >>"
<%- if vm_id %>
vmid = "<< vm_id >>"
<%- endif %>
<%- if description %>
description = "<< description >>"
<%- endif %>
<%- if tags %>
tags = "<< tags >>"
<%- endif %>
agent = 1
agent_timeout = 90
target_node = "<< target_node >>"
define_connection_info = false
full_clone = << full_clone | lower >>
clone = "<< clone_template >>"
onboot = << onboot | lower >>
<%- if startup %>
startup = "<< startup >>"
<%- endif %>
automatic_reboot = << automatic_reboot | lower >>
qemu_os = "<< qemu_os >>"
bios = "<< bios >>"
cpu {
cores = << cpu_cores >>
sockets = << cpu_sockets >>
type = "<< cpu_type >>"
}
memory = << memory_mb >>
balloon = << memory_mb >>
network {
id = 0
bridge = "<< bridge >>"
model = "<< network_model >>"
}
scsihw = "virtio-scsi-pci"
disks {
ide {
ide0 {
cloudinit {
storage = "<< cloudinit_storage >>"
}
}
}
virtio {
virtio0 {
disk {
storage = "<< disk_storage >>"
size = "<< disk_size_gb >>G"
iothread = << disk_iothread | lower >>
replicate = << disk_replicate | lower >>
}
}
}
}
ipconfig0 = "<< ipconfig0 >>"
<%- if nameserver %>
nameserver = "<< nameserver >>"
<%- endif %>
ciuser = "<< ci_user >>"
<%- if ssh_key %>
sshkeys = "<< ssh_key >>"
<%- endif %>
}