initial template

This commit is contained in:
CC
2026-05-20 22:59:27 +01:00
commit b45851e888
8 changed files with 152 additions and 0 deletions

20
terraform/main.tf Normal file
View File

@@ -0,0 +1,20 @@
module "vm" {
source = "git::https://your-git-server/infra/modules/proxmox_ubuntu_cloudinit.git//?ref=v1.0.0"
vm_name = var.vm_name
node_name = var.node_name
node_datastore = var.node_datastore
bridge = var.bridge
vm_cpu = var.vm_cpu
vm_ram = var.vm_ram
vm_size = var.vm_size
vm_bios = var.vm_bios
vm_machine = var.vm_machine
vm_tags = local.all_tags
vm_user_sshkey = var.vm_user_sshkey
}
locals {
ip_tag = "ip-${replace(module.vm.vm_ipv4_address, ".", "-")}"
all_tags = concat(var.vm_tags, ["terraform", "docker"], [local.ip_tag])
}