2023-05-02 09:51:22 +00:00
|
|
|
terraform {
|
|
|
|
backend "pg" {
|
|
|
|
schema_name = "shoarma"
|
|
|
|
}
|
|
|
|
|
|
|
|
required_providers {
|
|
|
|
libvirt = {
|
|
|
|
source = "dmacvicar/libvirt"
|
|
|
|
}
|
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" {
|
|
|
|
uri = "qemu+ssh://root@atlas.hyp/system"
|
|
|
|
}
|
|
|
|
|
2023-05-04 10:29:29 +00:00
|
|
|
provider "libvirt" {
|
|
|
|
alias = "jefke"
|
|
|
|
uri = "qemu+ssh://root@jefke.hyp/system"
|
|
|
|
}
|
|
|
|
|
2023-07-22 10:06:49 +00:00
|
|
|
module "maestro" {
|
|
|
|
source = "../../tf-modules/debian"
|
|
|
|
name = "maestro"
|
|
|
|
domain_name = "tf-maestro"
|
|
|
|
memory = 1024 * 10
|
|
|
|
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" {
|
|
|
|
source = "../../tf-modules/debian"
|
|
|
|
name = "bancomart"
|
|
|
|
domain_name = "tf-bancomart"
|
|
|
|
memory = 1024 * 10
|
2023-05-04 10:29:29 +00:00
|
|
|
providers = {
|
|
|
|
libvirt = libvirt.jefke
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-22 10:06:49 +00:00
|
|
|
#module "manager" {
|
|
|
|
# source = "git::https://git.kun.is/home/tf-modules.git//debian"
|
|
|
|
# name = "maestro"
|
|
|
|
# domain_name = "tf-maestro"
|
|
|
|
# memory = 1024
|
|
|
|
# mac = "CA:FE:C0:FF:EE:08"
|
|
|
|
# hypervisor_host = "atlas.hyp"
|
|
|
|
# providers = {
|
|
|
|
# libvirt = libvirt
|
|
|
|
# }
|
|
|
|
#}
|
|
|
|
#
|
|
|
|
#module "swarmpub1" {
|
|
|
|
# source = "git::https://git.kun.is/home/tf-modules.git//debian"
|
|
|
|
# name = "swarmpub1"
|
|
|
|
# domain_name = "tf-swarmpub1"
|
|
|
|
# memory = 1024 * 5
|
|
|
|
# hypervisor_host = "atlas.hyp"
|
|
|
|
# providers = {
|
|
|
|
# libvirt = libvirt
|
|
|
|
# }
|
|
|
|
#}
|
|
|
|
#
|
|
|
|
#module "swarmpriv1" {
|
|
|
|
# source = "git::https://git.kun.is/home/tf-modules.git//debian"
|
|
|
|
# name = "swarmpriv1"
|
|
|
|
# domain_name = "tf-swarmpriv1"
|
|
|
|
# memory = 1024 * 5
|
|
|
|
# hypervisor_host = "atlas.hyp"
|
|
|
|
# providers = {
|
|
|
|
# libvirt = libvirt
|
|
|
|
# }
|
|
|
|
#}
|
|
|
|
#
|
|
|
|
#module "swarmpub2" {
|
|
|
|
# source = "git::https://git.kun.is/home/tf-modules.git//debian"
|
|
|
|
# name = "swarmpub2"
|
|
|
|
# domain_name = "tf-swarmpub2"
|
|
|
|
# memory = 1024 * 3
|
|
|
|
# hypervisor_host = "jefke.hyp"
|
|
|
|
# providers = {
|
|
|
|
# libvirt = libvirt.jefke
|
|
|
|
# }
|
|
|
|
#}
|
|
|
|
#
|
|
|
|
#module "swarmpriv2" {
|
|
|
|
# source = "git::https://git.kun.is/home/tf-modules.git//debian"
|
|
|
|
# name = "swarmpriv2"
|
|
|
|
# domain_name = "tf-swarmpriv2"
|
|
|
|
# memory = 1024 * 3
|
|
|
|
# hypervisor_host = "jefke.hyp"
|
|
|
|
# providers = {
|
|
|
|
# libvirt = libvirt.jefke
|
|
|
|
# }
|
|
|
|
#}
|