{"id":40015890,"url":"https://github.com/tinycloud-labs/infrastructure","last_synced_at":"2026-05-08T04:32:53.737Z","repository":{"id":293941839,"uuid":"979105571","full_name":"tinycloud-labs/infrastructure","owner":"tinycloud-labs","description":"Core infrastructure automation w/Terragrunt, Ansible and GHA","archived":false,"fork":false,"pushed_at":"2026-01-14T04:07:52.000Z","size":725,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T08:13:11.957Z","etag":null,"topics":["ansible","helmfile","iac","k8s","terraform","terragrunt"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinycloud-labs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-07T02:20:22.000Z","updated_at":"2026-01-14T04:07:52.000Z","dependencies_parsed_at":"2025-11-22T10:07:24.630Z","dependency_job_id":null,"html_url":"https://github.com/tinycloud-labs/infrastructure","commit_stats":null,"previous_names":["shakir85/homelab","stackgarage/homelab","homecloud-labs/homelab","tinycloud-labs/infrastructure"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tinycloud-labs/infrastructure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinycloud-labs%2Finfrastructure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinycloud-labs%2Finfrastructure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinycloud-labs%2Finfrastructure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinycloud-labs%2Finfrastructure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinycloud-labs","download_url":"https://codeload.github.com/tinycloud-labs/infrastructure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinycloud-labs%2Finfrastructure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28559371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","helmfile","iac","k8s","terraform","terragrunt"],"created_at":"2026-01-19T03:04:14.109Z","updated_at":"2026-01-19T03:04:14.201Z","avatar_url":"https://github.com/tinycloud-labs.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub](https://img.shields.io/github/v/release/tinycloud-labs/infrastructure) \n![Terragrunt Stack](https://github.com/tinycloud-labs/infrastructure/actions/workflows/terragrunt-deploy-stack.yml/badge.svg) \n![Terragrunt Environment](https://github.com/tinycloud-labs/infrastructure/actions/workflows/terragrunt-deploy-env.yml/badge.svg) \n![License](https://img.shields.io/github/license/tinycloud-labs/infrastructure) \n![Issues](https://img.shields.io/github/issues/tinycloud-labs/infrastructure)\n\n# Homelab\n\nA Homelab Infrastructure-as-Code playground where I'm `uid=0`; I run the show: root access, full chaos. Powered by K3s, Proxmox, and Helm, hosting a variety of self-hosted services deployed via FluxCD.\n\n## Design Rationale\n\nThe IaC is constructed using the below K8s and Terragrunt logical design\n\n### Kubernetes\n\nK3s deployed via [Ansible collection](https://github.com/k3s-io/k3s-ansible). Order of resource deployment is based on resource existence (dependency):\n\n```\n        ┌───────────────────────────────────────────┐\n        │       Applications (FluxCD + Helm)        │\n        └───────────────────┬───────────────────────┘\n                            │ depends on\n        ┌───────────────────▼───────────────────────┐\n        │          Platform  (Terragrunt)           │\n        │          MetalLB, Flux,  etc              │\n        └───────────────────┬───────────────────────┘\n                            │ depends on\n        ┌───────────────────▼──────────────────────┐\n        │   Infrastructure (Terragrunt + Ansible)  │\n        │                VMs + K3s.                │\n        └──────────────────────────────────────────┘\n```\n\nEach layer in the diagram is represented as a corresponding Terragrunt stack, [for example this one](https://github.com/stackgarage/homelab/tree/main/terraform/live/prod). Except the apps, they're managed separately by Flux.\n\n### Terragrunt \n\nOrganized around the following logical hierarchy (using Terragrunt [stacks](https://terragrunt.gruntwork.io/docs/features/stacks/) and [units](https://terragrunt.gruntwork.io/docs/features/units/)):\n\n```\nEnvironment (prod/dev) \u003e Stack \u003e Units\n```\n\n\n| Environment | a collection of stacks representing the full environment (platform + infrastructure layers) |\n| --- | --- |\n| **Stack** | **a collection of units representing a complete middleware  layer (e.g., `terraform/live/prod/infra/`, etc)** |\n| **Unit** | **a Terragrunt thin wrapper around a Terraform module representing a specific tool or resource (e.g., `terraform/catalog/units/loadbalancer/`)**\n\n\n## Terraform State\n\nState files are dynamically generated on the first run (thanks to Terragrunt's `generate` blocks), constructed via the `terraform/root.hcl` and organized in S3 cleanly as:  `live/\u003cenv\u003e/\u003cstack\u003e/.terragrunt-stack/\u003cunit\u003e` pretty much mirroring the repo's directory hierarchy (separation across boundaries).\n\n## Automation and other stuff\n\n- Infrastructure: GitHub Actions to handle Terragrunt stacks and full-environment, as well as some helper workflows for code management.\n- Applications deployment: Hosted in a [separated repo](https://github.com/tinycloud-labs/flux), deployed in a GitOps fashion by FluxCD.\n- Helm Charts: Custom Helm charts released and hosted to Github Pages https://github.com/tinycloud-labs/helm\n\n## Networking (not in code)\n- Pfsense: Firewall, DNS, HAProxy, VLANs, VPN, and ACME cert-management and rotation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinycloud-labs%2Finfrastructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinycloud-labs%2Finfrastructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinycloud-labs%2Finfrastructure/lists"}