Supprimer vm.tf
This commit is contained in:
parent
e300d47eed
commit
285fe1cc91
39
vm.tf
39
vm.tf
@ -1,39 +0,0 @@
|
||||
resource "proxmox_vm_qemu" "vms" {
|
||||
for_each = var.vms
|
||||
|
||||
name = each.key
|
||||
target_node = var.target_node
|
||||
|
||||
clone = each.value.clone != null ? each.value.clone : null
|
||||
|
||||
cores = each.value.cores
|
||||
sockets = 1
|
||||
memory = each.value.memory
|
||||
|
||||
disks {
|
||||
ide {
|
||||
ide0 {
|
||||
disk {
|
||||
size = each.value.disk_size
|
||||
storage = "local-lvm"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
network {
|
||||
id = 0
|
||||
model = "virtio"
|
||||
bridge = var.default_bridge
|
||||
tag = each.value.vlan_tag
|
||||
}
|
||||
|
||||
os_type = "cloud-init"
|
||||
ipconfig0 = "ip=${each.value.ip_address},gw=${var.default_gateway}"
|
||||
|
||||
|
||||
boot = "order=ide0"
|
||||
|
||||
tags = "terraform,vm,${each.key}"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user