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-26 11:24:03 +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-26 11:24:03 +00:00
|
|
|
source = "git::https://git.pim.kunis.nl/pim/tf-debian-vm.git"
|
2023-04-05 17:15:03 +00:00
|
|
|
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)
|
2023-04-23 22:07:59 +00:00
|
|
|
ca_host = module.invariants.ca_host
|
|
|
|
ca_script = module.invariants.ca_script
|
2023-04-25 15:51:45 +00:00
|
|
|
ca_key = var.ca_key
|
2023-04-07 14:05:51 +00:00
|
|
|
memory = var.memory
|
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-19 09:27:31 +00:00
|
|
|
disk_size = var.disk_size
|
2023-04-25 20:37:27 +00:00
|
|
|
add_data_share = var.add_data_share
|
2023-05-04 11:33:33 +00:00
|
|
|
hypervisor_host = var.hypervisor_host
|
2023-04-05 15:39:38 +00:00
|
|
|
}
|