2023-11-25 20:00:21 +00:00
|
|
|
terraform {
|
|
|
|
backend "pg" {
|
2023-12-17 15:22:22 +00:00
|
|
|
schema_name = "dockerswarm"
|
2023-11-25 20:00:21 +00:00
|
|
|
conn_str = "postgresql://terraform@jefke.hyp/terraformstates"
|
|
|
|
}
|
|
|
|
|
|
|
|
required_providers {
|
|
|
|
libvirt = {
|
|
|
|
source = "dmacvicar/libvirt"
|
|
|
|
version = "0.7.1" # https://github.com/dmacvicar/terraform-provider-libvirt/issues/1040
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# https://libvirt.org/uri.html#libssh-and-libssh2-transport
|
|
|
|
provider "libvirt" {
|
2023-11-29 17:59:36 +00:00
|
|
|
alias = "jefke"
|
2023-11-25 20:00:21 +00:00
|
|
|
uri = "qemu+ssh://root@jefke.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
|
|
|
|
}
|
|
|
|
|
2023-11-29 17:59:36 +00:00
|
|
|
provider "libvirt" {
|
|
|
|
alias = "atlas"
|
|
|
|
uri = "qemu+ssh://root@atlas.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
|
|
|
|
}
|
|
|
|
|
2023-11-25 20:00:21 +00:00
|
|
|
module "setup_jefke" {
|
2023-12-25 18:22:22 +00:00
|
|
|
source = "../../../terraform_modules/setup"
|
2023-11-29 17:59:36 +00:00
|
|
|
providers = {
|
|
|
|
libvirt = libvirt.jefke
|
|
|
|
}
|
2023-11-25 20:00:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module "bancomart" {
|
2023-12-25 18:22:22 +00:00
|
|
|
source = "../../../terraform_modules/debian"
|
2023-11-25 20:00:21 +00:00
|
|
|
name = "bancomart"
|
2023-11-29 16:21:18 +00:00
|
|
|
ram = 4096
|
|
|
|
storage = 25
|
2023-11-29 17:59:36 +00:00
|
|
|
providers = {
|
|
|
|
libvirt = libvirt.jefke
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module "setup_atlas" {
|
2023-12-25 18:22:22 +00:00
|
|
|
source = "../../../terraform_modules/setup"
|
2023-11-29 17:59:36 +00:00
|
|
|
providers = {
|
|
|
|
libvirt = libvirt.atlas
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module "maestro" {
|
2023-12-25 18:22:22 +00:00
|
|
|
source = "../../../terraform_modules/debian"
|
2023-11-29 17:59:36 +00:00
|
|
|
name = "maestro"
|
|
|
|
ram = 8192
|
|
|
|
storage = 35
|
|
|
|
mac = "CA:FE:C0:FF:EE:08"
|
|
|
|
providers = {
|
|
|
|
libvirt = libvirt.atlas
|
|
|
|
}
|
2023-11-25 20:00:21 +00:00
|
|
|
}
|