terraform { backend "pg" { schema_name = "shoarma" } required_providers { libvirt = { source = "dmacvicar/libvirt" version = "0.7.1" # https://github.com/dmacvicar/terraform-provider-libvirt/issues/1040 } powerdns = { source = "pan-net/powerdns" version = "1.5.0" } } } provider "libvirt" { # https://libvirt.org/uri.html#libssh-and-libssh2-transport uri = "qemu+ssh://root@atlas.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts" } provider "libvirt" { alias = "jefke" uri = "qemu+ssh://root@jefke.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts" } provider "libvirt" { alias = "lewis" uri = "qemu+ssh://root@lewis.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts" } module "maestro" { source = "git::https://git.kun.is/home/tf-modules.git//debian" name = "maestro" domain_name = "tf-maestro" memory = 10240 mac = "CA:FE:C0:FF:EE:08" providers = { libvirt = libvirt } } module "bancomart" { source = "git::https://git.kun.is/home/tf-modules.git//debian" name = "bancomart" domain_name = "tf-bancomart" memory = 10240 disk_pool = "disks" cloudinit_pool = "cloudinit" disk_base_pool = "images" bridge_name = "bridgedmz" providers = { libvirt = libvirt.jefke } } module "vpay" { source = "git::https://git.kun.is/home/tf-modules.git//debian" name = "vpay" domain_name = "tf-vpay" memory = 3 * 1024 providers = { libvirt = libvirt.lewis } }