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"
alias = "jefke"
uri = "qemu+ssh://root@jefke.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
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" {
name = "bancomart"
domain_name = "tf-bancomart"
libvirt = libvirt.jefke
module "vpay" {
name = "vpay"
domain_name = "tf-vpay"
memory = 3 * 1024
libvirt = libvirt.lewis