2023-05-02 09:51:22 +00:00
|
|
|
terraform {
|
|
|
|
backend "pg" {
|
|
|
|
schema_name = "shoarma"
|
|
|
|
}
|
|
|
|
|
|
|
|
required_providers {
|
|
|
|
libvirt = {
|
|
|
|
source = "dmacvicar/libvirt"
|
2023-10-26 19:08:19 +00:00
|
|
|
version = "0.7.1" # https://github.com/dmacvicar/terraform-provider-libvirt/issues/1040
|
2023-05-02 09:51:22 +00:00
|
|
|
}
|
2023-05-31 19:03:43 +00:00
|
|
|
|
|
|
|
powerdns = {
|
|
|
|
source = "pan-net/powerdns"
|
|
|
|
version = "1.5.0"
|
|
|
|
}
|
2023-05-02 09:51:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "libvirt" {
|
2023-10-26 19:08:19 +00:00
|
|
|
# https://libvirt.org/uri.html#libssh-and-libssh2-transport
|
|
|
|
uri = "qemu+ssh://root@atlas.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
|
2023-05-02 09:51:22 +00:00
|
|
|
}
|
|
|
|
|
2023-05-04 10:29:29 +00:00
|
|
|
provider "libvirt" {
|
|
|
|
alias = "jefke"
|
2023-10-26 19:08:19 +00:00
|
|
|
uri = "qemu+ssh://root@jefke.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
|
2023-05-04 10:29:29 +00:00
|
|
|
}
|
|
|
|
|
2023-08-01 14:22:24 +00:00
|
|
|
provider "libvirt" {
|
|
|
|
alias = "lewis"
|
2023-10-26 19:08:19 +00:00
|
|
|
uri = "qemu+ssh://root@lewis.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
|
2023-08-01 14:22:24 +00:00
|
|
|
}
|
|
|
|
|
2023-07-22 10:06:49 +00:00
|
|
|
module "maestro" {
|
2023-07-22 10:24:27 +00:00
|
|
|
source = "git::https://git.kun.is/home/tf-modules.git//debian"
|
2023-07-22 10:06:49 +00:00
|
|
|
name = "maestro"
|
|
|
|
domain_name = "tf-maestro"
|
2023-07-22 10:24:27 +00:00
|
|
|
memory = 10240
|
2023-07-22 10:06:49 +00:00
|
|
|
mac = "CA:FE:C0:FF:EE:08"
|
2023-05-04 10:29:29 +00:00
|
|
|
providers = {
|
|
|
|
libvirt = libvirt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-22 10:06:49 +00:00
|
|
|
module "bancomart" {
|
2023-07-22 10:24:27 +00:00
|
|
|
source = "git::https://git.kun.is/home/tf-modules.git//debian"
|
2023-07-22 10:06:49 +00:00
|
|
|
name = "bancomart"
|
|
|
|
domain_name = "tf-bancomart"
|
2023-07-22 10:24:27 +00:00
|
|
|
memory = 10240
|
2023-10-29 17:28:15 +00:00
|
|
|
disk_pool = "disks"
|
|
|
|
cloudinit_pool = "cloudinit"
|
|
|
|
disk_base_pool = "images"
|
|
|
|
bridge_name = "bridgedmz"
|
|
|
|
|
2023-05-04 10:29:29 +00:00
|
|
|
providers = {
|
|
|
|
libvirt = libvirt.jefke
|
|
|
|
}
|
|
|
|
}
|
2023-08-01 14:22:24 +00:00
|
|
|
|
2023-10-26 19:08:19 +00:00
|
|
|
module "vpay" {
|
2023-08-01 14:22:24 +00:00
|
|
|
source = "git::https://git.kun.is/home/tf-modules.git//debian"
|
2023-10-26 19:08:19 +00:00
|
|
|
name = "vpay"
|
|
|
|
domain_name = "tf-vpay"
|
2023-08-01 14:22:24 +00:00
|
|
|
memory = 3 * 1024
|
|
|
|
providers = {
|
|
|
|
libvirt = libvirt.lewis
|
|
|
|
}
|
|
|
|
}
|