added second proxmox node
This commit is contained in:
1 parent
961f97e566
commit
d2bc9645d1
4 files changed
+62
-16
No files matched your search
@@ -54,9 +54,29 @@ module "proxmox" {
|
||||
}
|
||||
}
|
||||
|
||||
module "pve2" {
|
||||
source = "./opentofu/modules/proxmox_node"
|
||||
|
||||
node_name = var.hypervisors["pve2"].node_name
|
||||
storage = var.hypervisors["pve2"].storage
|
||||
lxc = try(var.nodes["pve2"].lxc, {})
|
||||
machines = try(var.nodes["pve2"].machines, {})
|
||||
search_domain = local.node_common.search_domain
|
||||
dns_nameservers = local.node_common.dns_nameservers
|
||||
ssh_key = local.node_common.ssh_key
|
||||
ansible_user = local.node_common.ansible_user
|
||||
lxc_password = local.node_common.lxc_password
|
||||
ssh_private_key_path = local.node_common.ssh_private_key_path
|
||||
|
||||
providers = {
|
||||
proxmox = proxmox.pve2
|
||||
}
|
||||
}
|
||||
|
||||
locals {
|
||||
hv_hosts = {
|
||||
proxmox = { lxc = module.proxmox.lxc_hosts, vm = module.proxmox.vm_hosts }
|
||||
pve2 = { lxc = module.pve2.lxc_hosts, vm = module.pve2.vm_hosts }
|
||||
}
|
||||
|
||||
all_hosts = flatten([
|
||||
|
||||
Reference in new issue
Block a user