refactor: simplify project structure
This commit is contained in:
30
modules/00-globals/system/main.tf
Normal file
30
modules/00-globals/system/main.tf
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user