This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
tf-modules/debian/main.tf

33 lines
1.3 KiB
Terraform
Raw Normal View History

2023-04-05 15:39:38 +00:00
terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
}
}
}
2023-04-05 17:15:03 +00:00
module "invariants" {
2023-04-05 17:29:33 +00:00
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//invariants"
2023-04-05 17:15:03 +00:00
}
2023-04-05 15:39:38 +00:00
module "tf_debian_vm" {
2023-04-05 17:15:03 +00:00
source = "git::https://git.pim.kunis.nl/pim/tf-debian-vm.git"
name = var.name
2023-04-12 13:17:08 +00:00
domain_name = var.domain_name
2023-04-05 17:15:03 +00:00
admin_authorized_keys = coalesce(var.admin_authorized_keys, module.invariants.admin_authorized_keys)
2023-04-07 14:05:51 +00:00
insecure_password = var.insecure_password
use_host_cert = var.use_host_cert
2023-04-05 17:15:03 +00:00
disk_pool = coalesce(var.disk_pool, module.invariants.disk_pool)
disk_base = coalesce(var.disk_base, module.invariants.disk_base)
disk_base_pool = coalesce(var.disk_base_pool, module.invariants.disk_base_pool)
cloudinit_pool = coalesce(var.cloudinit_pool, module.invariants.cloudinit_pool)
bridge_name = coalesce(var.bridge_name, module.invariants.bridge_name)
ca_host = coalesce(var.ca_host, module.invariants.ca_host)
2023-04-07 14:05:51 +00:00
memory = var.memory
2023-04-07 15:44:06 +00:00
data_disk = var.data_disk
2023-04-07 16:06:53 +00:00
fixed_address = var.fixed_address
2023-04-09 09:35:22 +00:00
ansible_command = var.ansible_command
2023-04-09 11:36:40 +00:00
mac = var.mac
2023-04-17 07:32:30 +00:00
fixed_dns = var.fixed_dns
2023-04-05 15:39:38 +00:00
}