mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-28 02:56:13 +01:00
5ed9ee1903
Signed-off-by: Magic_RB <magic_rb@redalder.org>
59 lines
848 B
HCL
59 lines
848 B
HCL
terraform {
|
|
required_providers {
|
|
nomad = {
|
|
configuration_aliases = [
|
|
nomad.do-1,
|
|
nomad.homelab-1
|
|
]
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "flake_rev" {
|
|
type = string
|
|
}
|
|
|
|
variable "flake_ref" {
|
|
type = string
|
|
}
|
|
|
|
variable "flake_sha" {
|
|
type = string
|
|
}
|
|
|
|
variable "flake_host" {
|
|
type = string
|
|
}
|
|
|
|
variable "flake_host_alt" {
|
|
type = string
|
|
}
|
|
|
|
module "do-1" {
|
|
source = "./do-1"
|
|
|
|
flake_rev = var.flake_rev
|
|
flake_ref = var.flake_ref
|
|
flake_host = var.flake_host
|
|
flake_host_alt = var.flake_host_alt
|
|
flake_sha = var.flake_sha
|
|
|
|
providers = {
|
|
nomad = nomad.do-1
|
|
}
|
|
}
|
|
|
|
module "homelab-1" {
|
|
source = "./homelab-1"
|
|
|
|
flake_rev = var.flake_rev
|
|
flake_ref = var.flake_ref
|
|
flake_host = var.flake_host
|
|
flake_host_alt = var.flake_host_alt
|
|
flake_sha = var.flake_sha
|
|
|
|
providers = {
|
|
nomad = nomad.homelab-1
|
|
}
|
|
}
|