2022-06-01 08:41:51 +02:00
|
|
|
terraform {
|
|
|
|
backend "consul" {
|
2022-08-26 20:51:11 +02:00
|
|
|
address = "http://10.64.2.1:8500"
|
2022-06-01 08:41:51 +02:00
|
|
|
scheme = "http"
|
|
|
|
path = "team/terraform/state"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
provider "nomad" {
|
2022-08-26 20:51:11 +02:00
|
|
|
address = "http://10.64.2.1:4646"
|
2022-07-30 23:27:40 +02:00
|
|
|
region = "homelab-1"
|
2022-07-31 07:46:24 +02:00
|
|
|
alias = "homelab-1"
|
2022-07-30 23:27:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
provider "nomad" {
|
2022-08-26 20:51:11 +02:00
|
|
|
address = "http://10.64.2.1:4646"
|
2022-07-30 23:27:40 +02:00
|
|
|
region = "do-1"
|
2022-07-31 07:46:24 +02:00
|
|
|
alias = "do-1"
|
2022-06-01 08:41:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
provider "vault" {
|
|
|
|
address = "https://vault.in.redalder.org:8200/"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "flake_rev" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2022-08-26 20:51:11 +02:00
|
|
|
variable "flake_ref" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2022-06-01 08:41:51 +02:00
|
|
|
variable "flake_host" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "flake_host_alt" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "flake_sha" {
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2022-07-30 23:27:40 +02:00
|
|
|
module "nomad" {
|
|
|
|
source = "./nomad"
|
|
|
|
|
|
|
|
flake_rev = var.flake_rev
|
2022-08-26 20:51:11 +02:00
|
|
|
flake_ref = var.flake_ref
|
2022-07-30 23:27:40 +02:00
|
|
|
flake_host = var.flake_host
|
|
|
|
flake_host_alt = var.flake_host_alt
|
|
|
|
flake_sha = var.flake_sha
|
2022-07-31 07:46:24 +02:00
|
|
|
|
|
|
|
providers = {
|
|
|
|
nomad.do-1 = nomad.do-1
|
|
|
|
nomad.homelab-1 = nomad.homelab-1
|
|
|
|
}
|
2022-07-30 23:27:40 +02:00
|
|
|
}
|