Merge branch 'master' of ssh://git.kun.is:56287/home/nixos-servers

This commit is contained in:
Niels Kunis 2024-01-07 20:31:17 +01:00
commit fcf6864b77
20 changed files with 400 additions and 150 deletions

View file

@ -7,5 +7,5 @@ all:
hosts:
bancomart:
ansible_host: bancomart.dmz
vpay:
ansible_host: vpay.dmz
# vpay:
# ansible_host: vpay.dmz

View file

@ -23,13 +23,6 @@ provider "libvirt" {
uri = "qemu+ssh://root@atlas.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
}
module "setup_jefke" {
source = "../../../terraform_modules/setup"
providers = {
libvirt = libvirt.jefke
}
}
module "bancomart" {
source = "../../../terraform_modules/debian"
name = "bancomart"
@ -40,13 +33,6 @@ module "bancomart" {
}
}
module "setup_atlas" {
source = "../../../terraform_modules/setup"
providers = {
libvirt = libvirt.atlas
}
}
module "maestro" {
source = "../../../terraform_modules/debian"
name = "maestro"

View file

@ -0,0 +1,38 @@
terraform {
backend "pg" {
schema_name = "libvirtsetup"
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" {
alias = "jefke"
uri = "qemu+ssh://root@jefke.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
}
provider "libvirt" {
alias = "atlas"
uri = "qemu+ssh://root@atlas.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
}
module "setup_jefke" {
source = "../../terraform_modules/setup"
providers = {
libvirt = libvirt.jefke
}
}
module "setup_atlas" {
source = "../../terraform_modules/setup"
providers = {
libvirt = libvirt.atlas
}
}