mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Update proxmox.tf
This commit is contained in:
12
proxmox.tf
12
proxmox.tf
@ -162,6 +162,12 @@ resource "proxmox_virtual_environment_vm" "k8s_vms" {
|
|||||||
size = each.value.disk_size
|
size = each.value.disk_size
|
||||||
interface = "scsi1"
|
interface = "scsi1"
|
||||||
}
|
}
|
||||||
|
disk {
|
||||||
|
datastore_id = "local-snippets"
|
||||||
|
file_id = proxmox_virtual_environment_file.vm_user_data[each.key].id
|
||||||
|
interface = "ide2"
|
||||||
|
file_format = "raw"
|
||||||
|
}
|
||||||
|
|
||||||
clone {
|
clone {
|
||||||
vm_id = proxmox_virtual_environment_vm.proxmox-kubernetes-VM-template.id
|
vm_id = proxmox_virtual_environment_vm.proxmox-kubernetes-VM-template.id
|
||||||
@ -176,12 +182,6 @@ initialization {
|
|||||||
address = "dhcp"
|
address = "dhcp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
disk {
|
|
||||||
datastore_id = "local-snippets"
|
|
||||||
file_id = proxmox_virtual_environment_file.vm_user_data[each.key].id
|
|
||||||
interface = "ide2"
|
|
||||||
file_format = "raw"
|
|
||||||
}
|
|
||||||
# ip_config {
|
# ip_config {
|
||||||
# ipv4 {
|
# ipv4 {
|
||||||
# address = each.value.ip
|
# address = each.value.ip
|
||||||
|
|||||||
Reference in New Issue
Block a user