{"id":35528163,"url":"https://github.com/homestak-dev/tofu","last_synced_at":"2026-03-07T06:09:04.423Z","repository":{"id":331566569,"uuid":"1126467468","full_name":"homestak-dev/tofu","owner":"homestak-dev","description":"OpenTofu modules for Proxmox VM provisioning with cloud-init","archived":false,"fork":false,"pushed_at":"2026-03-03T01:10:37.000Z","size":9259,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-03T05:35:29.617Z","etag":null,"topics":["cloud-init","homelab","infrastructure-as-code","opentofu","proxmox","terraform"],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/homestak-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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":"2026-01-02T01:10:42.000Z","updated_at":"2026-03-02T02:11:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/homestak-dev/tofu","commit_stats":null,"previous_names":["homestak-dev/tofu"],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/homestak-dev/tofu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-dev%2Ftofu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-dev%2Ftofu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-dev%2Ftofu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-dev%2Ftofu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homestak-dev","download_url":"https://codeload.github.com/homestak-dev/tofu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homestak-dev%2Ftofu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30208829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloud-init","homelab","infrastructure-as-code","opentofu","proxmox","terraform"],"created_at":"2026-01-04T01:15:31.411Z","updated_at":"2026-03-07T06:09:04.396Z","avatar_url":"https://github.com/homestak-dev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tofu\n\nOpenTofu modules for Proxmox VM provisioning with cloud-init.\n\n## Overview\n\nThis repo provides two things:\n\n1. **Reusable modules** - `proxmox-vm`, `proxmox-file`, `proxmox-sdn` can be used standalone by anyone doing Proxmox + OpenTofu work\n\n2. **homestak integration** - `envs/generic` is the execution layer for [iac-driver](https://github.com/homestak-dev/iac-driver) workflows\n\nPart of the [homestak-dev](https://github.com/homestak-dev) organization.\n\n## Quick Start\n\n### Option A: Full homestak (recommended)\n\nUse iac-driver for manifest-driven VM provisioning:\n\n```bash\n# Install homestak\ncurl -fsSL https://raw.githubusercontent.com/homestak-dev/bootstrap/master/install.sh | bash\n\n# Deploy and test a VM\ncd /usr/local/lib/homestak/iac-driver\n./run.sh manifest test -M n1-push -H \u003cnodename\u003e\n```\n\n### Option B: Module reuse (advanced)\n\nUse modules directly in your own OpenTofu configuration:\n\n```hcl\nmodule \"vm\" {\n  source = \"github.com/homestak-dev/tofu//proxmox-vm\"\n\n  proxmox_node_name    = \"pve\"\n  vm_name              = \"my-vm\"\n  cloud_image_id       = \"local:iso/debian-12.img\"\n  cloud_init_user_data = file(\"cloud-init.yaml\")\n\n  vm_cpu_cores = 2\n  vm_memory    = 4096\n  vm_disk_size = 20\n}\n```\n\n### Option C: Direct generic env (debugging only)\n\nRequires manually crafted tfvars.json matching iac-driver schema:\n\n```bash\ncd envs/generic\ntofu init\ntofu plan -var-file=/path/to/tfvars.json\ntofu apply -var-file=/path/to/tfvars.json\n```\n\n## Project Structure\n\n```\ntofu/\n├── proxmox-vm/       # Reusable: VM provisioning with cloud-init\n├── proxmox-file/     # Reusable: cloud image management\n├── proxmox-sdn/      # Reusable: VXLAN SDN networking\n└── envs/\n    └── generic/      # homestak: receives config from iac-driver\n```\n\n## Modules\n\n| Module | Purpose |\n|--------|---------|\n| `proxmox-vm` | Single VM with CPU, memory, disk, network, cloud-init |\n| `proxmox-file` | Cloud image management (local or URL source) |\n| `proxmox-sdn` | VXLAN zone, vnet, and subnet configuration |\n\n## Prerequisites\n\n- OpenTofu CLI\n- Proxmox VE with API access\n- SSH key at `~/.ssh/id_rsa`\n\nFor full homestak integration:\n- [bootstrap](https://github.com/homestak-dev/bootstrap) installed\n- [site-config](https://github.com/homestak-dev/site-config) set up and decrypted\n\n## Documentation\n\nSee [CLAUDE.md](CLAUDE.md) for detailed architecture, configuration flow, and known issues.\n\n## Third-Party Acknowledgments\n\n| Dependency | Purpose | License |\n|------------|---------|---------|\n| [bpg/proxmox](https://github.com/bpg/terraform-provider-proxmox) | OpenTofu provider for Proxmox API | MPL-2.0 |\n\n## Related Repos\n\n| Repo | Purpose |\n|------|---------|\n| [bootstrap](https://github.com/homestak-dev/bootstrap) | Entry point - curl\\|bash setup |\n| [site-config](https://github.com/homestak-dev/site-config) | Site-specific secrets and configuration |\n| [ansible](https://github.com/homestak-dev/ansible) | Proxmox host configuration |\n| [iac-driver](https://github.com/homestak-dev/iac-driver) | Orchestration engine |\n| [packer](https://github.com/homestak-dev/packer) | Custom Debian cloud images |\n\n## License\n\nApache 2.0 - see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomestak-dev%2Ftofu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomestak-dev%2Ftofu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomestak-dev%2Ftofu/lists"}