mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Compare commits
3 Commits
697189577d
...
f1cf864164
| Author | SHA1 | Date | |
|---|---|---|---|
| f1cf864164 | |||
| a7f3b6d7e1 | |||
| fcc7c9814a |
@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
from ruamel.yaml import YAML
|
||||
from ruamel.yaml import YAML
|
||||
import sys
|
||||
import json
|
||||
from collections.abc import Mapping
|
||||
|
||||
14
proxmox.tf
14
proxmox.tf
@ -122,9 +122,6 @@ resource "proxmox_virtual_environment_vm" "proxmox-kubernetes-VM-template" {
|
||||
network_device {
|
||||
bridge = "vmbr0" # rede de gestão para comunicação com Cluster A
|
||||
}
|
||||
network_device {
|
||||
bridge = "vmbr2"
|
||||
}
|
||||
|
||||
initialization {
|
||||
dns {
|
||||
@ -136,11 +133,6 @@ initialization {
|
||||
}
|
||||
}
|
||||
|
||||
ip_config {
|
||||
ipv4 {
|
||||
address = "dhcp"
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user