mirror of
https://gitlab.durp.info/durfy/homelab/iac.git
synced 2026-05-07 07:50:30 -05:00
update
This commit is contained in:
parent
9df995d866
commit
36c8dadfbd
1 changed files with 0 additions and 57 deletions
|
|
@ -1,57 +0,0 @@
|
||||||
resource "proxmox_vm_qemu" "matrix" {
|
|
||||||
count = local.matrix.count
|
|
||||||
ciuser = "administrator"
|
|
||||||
vmid = "${local.vlan}${local.matrix.ip[count.index]}"
|
|
||||||
name = local.matrix.name[count.index]
|
|
||||||
target_node = local.matrix.node[count.index]
|
|
||||||
clone = local.template
|
|
||||||
tags = local.matrix.tags
|
|
||||||
qemu_os = "l26"
|
|
||||||
full_clone = true
|
|
||||||
os_type = "cloud-init"
|
|
||||||
agent = 1
|
|
||||||
cores = local.matrix.cores
|
|
||||||
sockets = 1
|
|
||||||
cpu_type = "host"
|
|
||||||
memory = local.matrix.memory
|
|
||||||
scsihw = "virtio-scsi-pci"
|
|
||||||
#bootdisk = "scsi0"
|
|
||||||
boot = "order=virtio0"
|
|
||||||
onboot = true
|
|
||||||
sshkeys = local.sshkeys
|
|
||||||
vga {
|
|
||||||
type = "serial0"
|
|
||||||
}
|
|
||||||
serial {
|
|
||||||
id = 0
|
|
||||||
type = "socket"
|
|
||||||
}
|
|
||||||
disks {
|
|
||||||
ide {
|
|
||||||
ide2 {
|
|
||||||
cloudinit {
|
|
||||||
storage = local.storage
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
virtio {
|
|
||||||
virtio0 {
|
|
||||||
disk {
|
|
||||||
size = local.matrix.drive
|
|
||||||
format = local.format
|
|
||||||
storage = local.storage
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
network {
|
|
||||||
id = 0
|
|
||||||
model = "virtio"
|
|
||||||
bridge = "vmbr0"
|
|
||||||
tag = local.vlan
|
|
||||||
}
|
|
||||||
#Cloud Init Settings
|
|
||||||
ipconfig0 = "ip=192.168.${local.vlan}.${local.matrix.ip[count.index]}/24,gw=192.168.${local.vlan}.1"
|
|
||||||
searchdomain = "durp.loc"
|
|
||||||
nameserver = local.dnsserver
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue