mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
modulize stuff now that we have multiple substantial things in here
This commit is contained in:
parent
c9aa3a07bb
commit
e89f062d3c
6 changed files with 22 additions and 0 deletions
8
terraform/hetzner/providers.tf
Normal file
8
terraform/hetzner/providers.tf
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
terraform {
|
||||||
|
required_providers {
|
||||||
|
hcloud = {
|
||||||
|
source = "hetznercloud/hcloud"
|
||||||
|
version = "~> 1.45"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
14
terraform/main.tf
Normal file
14
terraform/main.tf
Normal 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"]
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue