No description
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| LICENSES | ||
| .gitignore | ||
| .renovaterc.json5 | ||
| .version | ||
| .versionrc | ||
| .versionrc.license | ||
| authentik.tf | ||
| cloudflare.tf | ||
| dns.tf | ||
| Makefile | ||
| providers.tf | ||
| proxmox_lxc.tf | ||
| README.md | ||
| variables.tf | ||
OpenTofu (Terraform) Common Module
A really basic module for me to tinker in my Homelab while doing more ad-hoc IaC.
locals {
hostname = "servicename"
internal_ipv4 = "10.0.20.99"
}
variable "cloudflare_account_id" {
type = string
nullable = false
sensitive = true
}
variable "cloudflare_zone_id" {
type = string
nullable = false
sensitive = true
}
module "servicename" {
source = "git::https://git.auengun.net/homelab/opentofu-common.git"
hostname = local.hostname
internal_ipv4 = local.internal_ipv4
dns_split_horizon = true
cloudflare = {
enabled = true
account_id = var.cloudflare_account_id
zone_id = var.cloudflare_zone_id
direct_access = true
}
proxmox_lxc = {
enabled = true
tags = [local.hostname]
app_mp_path = format("/%s", local.hostname)
}
}