Move core services to new tf file

Precursor to moving to a module so it can be applied separately
This commit is contained in:
IamTheFij 2022-07-25 10:37:32 -07:00
parent a7e276c637
commit af4324db6f
2 changed files with 23 additions and 23 deletions

23
nomad/core.tf Normal file
View File

@ -0,0 +1,23 @@
module "databases" {
source = "./databases"
}
module "blocky" {
source = "./blocky"
base_hostname = var.base_hostname
depends_on = [module.databases]
}
module "traefik" {
source = "./traefik"
consul_address = var.consul_address
base_hostname = var.base_hostname
}
module "metrics" {
source = "./metrics"
consul_address = var.consul_address
}

View File

@ -1,26 +1,3 @@
module "databases" {
source = "./databases"
}
module "blocky" {
source = "./blocky"
base_hostname = var.base_hostname
depends_on = [module.databases]
}
module "traefik" {
source = "./traefik"
consul_address = var.consul_address
base_hostname = var.base_hostname
}
module "metrics" {
source = "./metrics"
consul_address = var.consul_address
}
module "nextcloud" { module "nextcloud" {
source = "./nextcloud" source = "./nextcloud"