2023-08-24 20:49:49 +00:00
|
|
|
module "databases" {
|
|
|
|
source = "./databases"
|
|
|
|
|
|
|
|
use_wesher = var.use_wesher
|
|
|
|
}
|
|
|
|
|
|
|
|
module "core" {
|
|
|
|
source = "./core"
|
|
|
|
|
|
|
|
base_hostname = var.base_hostname
|
|
|
|
use_wesher = var.use_wesher
|
|
|
|
|
|
|
|
# Metrics and Blocky depend on databases
|
|
|
|
depends_on = [module.databases]
|
|
|
|
}
|
|
|
|
|
|
|
|
module "services" {
|
|
|
|
source = "./services"
|
|
|
|
|
2023-08-24 22:03:36 +00:00
|
|
|
base_hostname = var.base_hostname
|
|
|
|
use_wesher = var.use_wesher
|
2023-08-24 20:49:49 +00:00
|
|
|
|
|
|
|
# NOTE: It may be possible to flip this and core so core templates don't
|
|
|
|
# need to be rerendered every time a service goes up or down.
|
|
|
|
depends_on = [module.databases, module.core]
|
|
|
|
}
|
|
|
|
|
|
|
|
module "backups" {
|
|
|
|
source = "./backups"
|
|
|
|
|
|
|
|
use_wesher = var.use_wesher
|
|
|
|
|
|
|
|
depends_on = [module.databases, module.services, module.core]
|
|
|
|
}
|