2022-06-01 08:41:51 +02:00
|
|
|
terraform {
|
|
|
|
backend "consul" {
|
|
|
|
address = "http://10.64.1.201:8500"
|
|
|
|
scheme = "http"
|
|
|
|
path = "team/terraform/state"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "nomad" {
|
|
|
|
address = "http://10.64.1.201:4646"
|
2022-07-30 23:27:40 +02:00
|
|
|
region = "homelab-1"
|
|
|
|
alias = "homelab"
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "nomad" {
|
|
|
|
address = "http://10.64.1.201:4646"
|
|
|
|
region = "do-1"
|
|
|
|
alias = "do"
|
2022-06-01 08:41:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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 "infrastructure" {
|
|
|
|
source = "./infrastructure"
|
|
|
|
|
|
|
|
flake_rev = var.flake_rev
|
|
|
|
flake_host = var.flake_host
|
|
|
|
flake_host_alt = var.flake_host_alt
|
|
|
|
flake_sha = var.flake_sha
|
|
|
|
}
|
2022-07-30 23:27:40 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|