module "vm" { source = "../../vm" name = var.name hostname = var.hostname domain = var.domain vm_id = var.vm_id node_name = var.node_name vm_ip_address = var.vm_ip_address template_id = var.template_id cores = var.cores memory = var.memory disk_size = var.disk_size ssh_public_key = var.ssh_public_key proxmox_host_ip = var.proxmox_host_ip cloudinit_config = templatefile( "${path.module}/cloud-init/service.yaml", { hostname = var.hostname domain = var.domain ssh_key = var.ssh_public_key proxmox_host_ip = var.proxmox_host_ip traefik-service = indent(6, file("${path.module}/lib/services/traefik.service")) install-traefik-script = indent(6, file("${path.module}/lib/scripts/install-traefik.sh")) env-file-content = indent(6, file("${path.module}/.env")) } ) }