terraform { backend "pg" { schema_name = "shoarma" conn_str = "postgres://terraform@10.42.0.1/terraform_state" } required_providers { libvirt = { source = "dmacvicar/libvirt" } } } provider "libvirt" { uri = "qemu+ssh://root@atlas.hyp/system" } module "manager" { source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian" name = "maestro" domain_name = "tf-maestro" memory = 1024 } module "workers" { for_each = { worker1 = "tf-worker1" } source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian" name = each.key domain_name = each.value memory = 1024 * 3 }