No description
Find a file
GregoryDosh 8db14fb377
Some checks failed
Create Release / Create Release (push) Failing after 19s
chore(1.3.8): tagged via Forgejo Actions & commit-and-tag-version
2025-10-31 00:51:04 +00:00
.forgejo/workflows chore(deps): update https://git.auengun.net/actions/forgejo-release action to v2.7.3 2025-09-16 12:30:29 +00:00
LICENSES feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
.gitignore feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
.renovaterc.json5 feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
.version chore(1.3.8): tagged via Forgejo Actions & commit-and-tag-version 2025-10-31 00:51:04 +00:00
.versionrc ci: adjust commit-and-release-version [skip-ci] 2024-11-24 19:11:20 -06:00
.versionrc.license feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
authentik.tf feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
cloudflare.tf feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
dns.tf feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
Makefile feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
providers.tf chore(deps): update terraform authentik to v2025.10.0 2025-10-28 00:34:33 +00:00
proxmox_lxc.tf feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00
README.md docs: removing old v1 ref 2025-05-13 10:17:27 -05:00
variables.tf feat: consistency sweeping w/ other repos to add release/tag process + license checking 2025-05-13 10:11:01 -05:00

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)
  }
}