generated from CC/VMServiceTemplate
Initial commit
This commit is contained in:
22
terraform/main.tf
Normal file
22
terraform/main.tf
Normal file
@@ -0,0 +1,22 @@
|
||||
module "proxmox_ubuntu_cloudinit_clone" {
|
||||
for_each = local.instance_map
|
||||
source = "./modules/proxmox_ubuntu_cloudinit_clone"
|
||||
|
||||
vm_name = each.value.vm_name
|
||||
service_name = each.value.service_name
|
||||
node_name = each.value.node_name
|
||||
node_datastore = var.vm_defaults.node_datastore
|
||||
bridge = var.vm_defaults.bridge
|
||||
vm_cpu = coalesce(try(each.value.vm_cpu, null), var.vm_defaults.vm_cpu)
|
||||
vm_ram = coalesce(try(each.value.vm_ram, null), var.vm_defaults.vm_ram)
|
||||
vm_size = coalesce(try(each.value.vm_size, null), var.vm_defaults.vm_size)
|
||||
vm_bios = var.vm_defaults.vm_bios
|
||||
vm_machine = var.vm_defaults.vm_machine
|
||||
vm_tags = concat(
|
||||
try(each.value.vm_tags, []),
|
||||
["terraform", "docker", each.value.service_name]
|
||||
)
|
||||
vm_user_sshkey = var.vm_defaults.vm_user_sshkey
|
||||
compose_file_content = filebase64("${path.root}/../compose/docker-compose.yml")
|
||||
env_file_content = filebase64("${path.root}/../compose/.env")
|
||||
}
|
||||
Reference in New Issue
Block a user