modulize stuff now that we have multiple substantial things in here

This commit is contained in:
Rasmus Wejlgaard 2026-05-04 13:29:59 +01:00
parent c9aa3a07bb
commit e89f062d3c
6 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,8 @@
terraform {
required_providers {
hcloud = {
source = "hetznercloud/hcloud"
version = "~> 1.45"
}
}
}

14
terraform/main.tf Normal file
View file

@ -0,0 +1,14 @@
module "hetzner" {
source = "./hetzner"
providers = {
hcloud = hcloud
}
}
module "grafana" {
source = "./grafana"
providers = {
grafana = grafana
}
plex_token = local.secrets["plex_token"]
}