2023-12-17 15:22:22 +00:00
|
|
|
terraform {
|
|
|
|
backend "pg" {
|
|
|
|
schema_name = "hermes"
|
|
|
|
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 = "atlas"
|
|
|
|
uri = "qemu+ssh://root@atlas.hyp/system?known_hosts=/etc/ssh/ssh_known_hosts"
|
|
|
|
}
|
|
|
|
|
|
|
|
module "hermes" {
|
2023-12-25 18:22:22 +00:00
|
|
|
source = "../../../terraform_modules/debian"
|
2023-12-17 15:22:22 +00:00
|
|
|
name = "hermes"
|
|
|
|
ram = 1024
|
|
|
|
storage = 25
|
|
|
|
mac = "CA:FE:C0:FF:EE:07"
|
|
|
|
static_ip = "192.168.30.7/24"
|
|
|
|
providers = {
|
|
|
|
libvirt = libvirt.atlas
|
|
|
|
}
|
|
|
|
}
|