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 2a77067bdc
commit 1c02e69225
2 changed files with 23 additions and 23 deletions

23
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" {
source = "./nextcloud"