mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 07:43:07 +00:00
Update proxmox.tf
This commit is contained in:
14
proxmox.tf
14
proxmox.tf
@ -122,9 +122,6 @@ resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
|||||||
network_device {
|
network_device {
|
||||||
bridge = "vmbr0" # rede de gestão para comunicação com Cluster A
|
bridge = "vmbr0" # rede de gestão para comunicação com Cluster A
|
||||||
}
|
}
|
||||||
network_device {
|
|
||||||
bridge = "vmbr2"
|
|
||||||
}
|
|
||||||
|
|
||||||
initialization {
|
initialization {
|
||||||
dns {
|
dns {
|
||||||
@ -136,11 +133,6 @@ initialization {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ip_config {
|
|
||||||
ipv4 {
|
|
||||||
address = "dhcp"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
user_data_file_id = proxmox_virtual_environment_file.cloud_init_yaml.id
|
user_data_file_id = proxmox_virtual_environment_file.cloud_init_yaml.id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -178,12 +170,6 @@ resource "proxmox_virtual_environment_vm" "k8s_vms" {
|
|||||||
gateway = each.value.gateway
|
gateway = each.value.gateway
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ip_config {
|
|
||||||
ipv4 {
|
|
||||||
address = each.value.ip2
|
|
||||||
gateway = each.value.gateway
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
user_data_file_id = proxmox_virtual_environment_file.vm_user_data[each.key].id
|
user_data_file_id = proxmox_virtual_environment_file.vm_user_data[each.key].id
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user