mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-22 08:04:20 +01:00
5d38fe62c9
Signed-off-by: main <magic_rb@redalder.org>
54 lines
830 B
HCL
54 lines
830 B
HCL
terraform {
|
|
backend "consul" {
|
|
address = "http://10.64.0.2:8500"
|
|
scheme = "http"
|
|
path = "team/terraform/state"
|
|
}
|
|
}
|
|
|
|
provider "nomad" {
|
|
address = "http://10.64.0.2:4646"
|
|
region = "homelab-1"
|
|
alias = "homelab-1"
|
|
}
|
|
|
|
provider "nomad" {
|
|
address = "http://10.64.0.2:4646"
|
|
region = "do-1"
|
|
alias = "do-1"
|
|
}
|
|
|
|
provider "vault" {
|
|
address = "https://vault.in.redalder.org:8200/"
|
|
}
|
|
|
|
variable "flake_rev" {
|
|
type = string
|
|
}
|
|
|
|
variable "flake_host" {
|
|
type = string
|
|
}
|
|
|
|
variable "flake_host_alt" {
|
|
type = string
|
|
}
|
|
|
|
variable "flake_sha" {
|
|
type = string
|
|
}
|
|
|
|
module "nomad" {
|
|
source = "./nomad"
|
|
|
|
flake_rev = var.flake_rev
|
|
flake_host = var.flake_host
|
|
flake_host_alt = var.flake_host_alt
|
|
flake_sha = var.flake_sha
|
|
|
|
providers = {
|
|
nomad.do-1 = nomad.do-1
|
|
nomad.homelab-1 = nomad.homelab-1
|
|
}
|
|
}
|