Files
homelab-opentofu/modules/00-globals/system/main.tf
2025-06-07 14:58:28 +10:00

31 lines
628 B
HCL

terraform {
required_providers {
dotenv = {
source = "germanbrew/dotenv"
}
}
}
data "dotenv" "system_config" {}
// Outputs
output "timezone" {
description = "System timezone"
value = data.dotenv.system_config.entries.TIMEZONE
}
output "data_dir" {
description = "Base directory for data volumes"
value = data.dotenv.system_config.entries.DATA_DIR
}
output "puid" {
description = "PUID for Docker containers"
value = data.dotenv.system_config.entries.PUID
}
output "pgid" {
description = "PGID for Docker containers"
value = data.dotenv.system_config.entries.PGID
}