Commit Graph

30 Commits

Author SHA1 Message Date
5af2701971 Merge pull request 'fix: add push trigger on main for terraform-plan' (#5) from feat/terraform-workflows into main
Reviewed-on: #5
Reviewed-by: iamferreirajp <iamferreirajp@gmail.com>
2026-04-10 12:16:44 -03:00
Gaia
85f50a0bf9 fix: add push trigger on main for terraform-plan 2026-04-10 12:13:46 -03:00
8f3b2d1de3 Merge pull request 'feat: add terraform plan and apply workflows' (#4) from feat/terraform-workflows into main
Reviewed-on: #4
2026-04-10 12:06:20 -03:00
Gaia
7bbef1beb7 chore: update plan workflow 2026-04-10 12:00:10 -03:00
ed0807c345 feat: add terraform apply workflow 2026-04-10 11:33:46 -03:00
9cb6a92e2a feat: add terraform plan workflow 2026-04-10 11:33:32 -03:00
83cee67ab7 Merge pull request 'feat: Terraform foundation — providers, resources, imports' (#3) from feat/terraform-iafoundation into main
Reviewed-on: #3
Reviewed-by: iamferreirajp <iamferreirajp@gmail.com>
2026-04-09 17:51:36 -03:00
e204876f61 feat: terraform foundation — providers, resources, imports
Terraform Cloud workspace criado via API (homelab_terraform/homelab)

Estrutura inicial:
- providers.tf: Proxmox provider (SSH + API token) + TF Cloud backend
- variables.tf: vars sensíveis (token API do Proxmox)
- resources.tf: 3 VMs QEMU (homeassistant:100, dockerino:102, media:103)
- imports.tf: data sources para ler estado sem modificar
- terraform.tfvars.example: template de configuração
- .gitignore: ignora .tfrc (contém token TF Cloud)

VMs descobertas via qm list:
  VMID 100 | homeassistant | 4GB RAM | 32GB disk
  VMID 102 | dockerino     | 10GB RAM | 74GB disk
  VMID 103 | media         | 16GB RAM | 64GB disk

Próximo passo: terraform import de cada VM + terraform plan para
verificar que o estado importado está correto.
2026-04-09 17:43:33 -03:00
82fec81eb2 inventory: fill all PLACEHOLDERs with Omada API discovered data
Discovery via Omada Controller API (gitea_client_2 app):
- All 4 network devices (ER605, SG2428P, 2x EAP610) with MAC/IP/firmware
- All 25 clients across VLANs 1/10/20 with MAC/IP/hostname
- Complete VLAN topology, gateways, DHCP ranges, static leases
- Proxmox node IP, VMs (homeassistant), LXC containers (dockerino, media)
- TrueNAS IP and all NFS mount points

Also fixes:
- hestia: gateway 10.0.0.1 (was PLACEHOLDER)
- physical.yaml: proxmox MAC/IP, truenas MAC/IP, ER605 full config
- network.yaml: all VLAN gateways filled (10.0.x.1 pattern)
2026-04-09 16:54:16 -03:00
112e62fed6 docs: rewrite README with clean structure and 4-layer architecture overview
- Remove old content (next steps executados, arquitetura defasada)
- Add clean repo structure
- Document how Picsur deploy works
- Add inventory files table
- Add next steps roadmap
2026-04-09 12:44:52 -03:00
f0d1cd789e clean: remove legacy/obsolete directories — terraform/ansible/docs/reports
- Remove terraform/ (all: adguard, er605, proxmox, truenas) — configs velhas, ja executadas
- Remove ansible/ — contradiz arquitetura de 4 camadas
- Remove docs/ — ARCHITECTURE.md substituído pelo inventory, NEXT_STEPS.md executado
- Remove reports/ — saídas de diagnóstico, não código
- Remove README.md — será reescrito quando inventory estiver completo
- Keep services/ — todos os serviços ativos no Dockerino
- Keep inventory/ — Single Source of Truth
- Keep gitea-runner/ — runner de CI/CD
- Keep .gitea/workflows/picsur.yml — deploy workflow
2026-04-09 12:44:22 -03:00
80abd358dc Merge pull request 'feat(picsur): Add Gitea Actions workflow + named volume' (#1) from feature/picsur-workflow into main
Some checks failed
Picsur Deploy / Validate Picsur Compose (push) Successful in 12s
Picsur Deploy / Deploy Picsur to Dockerino (push) Failing after 5s
Reviewed-on: #1
2026-04-09 12:33:14 -03:00
276dee3412 fix(inventory): fill Hestia real data — MACs, IP, disk size
All checks were successful
Picsur Deploy / Validate Picsur Compose (pull_request) Successful in 16s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
- enp9s0 (wired): 74:86:7a:f9:15:c1 (cabo sem link)
- wlp6s0 (WiFi): 0c:84:dc:d5:03:d1 (IP atual)
- IP via WiFi: 10.0.10.100
- Disk SSD: 224GB real
2026-04-09 12:30:53 -03:00
e3a9c44d5a feat(inventory): add initial inventory structure with placeholders
All checks were successful
Picsur Deploy / Validate Picsur Compose (pull_request) Successful in 12s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
Adds 4-layer inventory system as Single Source of Truth:
- inventory/physical.yaml: Physical hosts (Hestia, Proxmox, TrueNAS, ER605)
- inventory/proxmox.yaml: VMs and LXC containers (dockerino, media, homeassistant)
- inventory/truenas.yaml: ZFS pools, disks, datasets, NFS exports
- inventory/network.yaml: VLANs, subnets, DNS

All files have PLACEHOLDER fields to be filled with real data
using the discovery commands in inventory/README.md
2026-04-09 12:16:38 -03:00
665e5e1f40 refactor: move docker/ → services/
All checks were successful
Picsur Deploy / Validate Picsur Compose (pull_request) Successful in 12s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
- docker/ renamed to services/ (single source of truth for compose files)
- Update picsur.yml workflow paths from docker/dockerino/ to services/dockerino/
2026-04-09 12:13:10 -03:00
7fc4f1e3dd chore(gitea-runner): clean up binary/credentials, update docs
All checks were successful
Picsur Deploy / Validate Picsur Compose (pull_request) Successful in 12s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
- Remove act_runner binary (download on install)
- Remove .runner (auto-generated credentials)
- Remove data/ directory (root-owned temp)
- Remove docker-compose.yml (not needed for systemd setup)
- Update README with systemd installation steps
- Update register.sh to download binary + systemd workflow
- Update gitea-runner.service with PATH env var
- Add comprehensive .gitignore for terraform/ansible/runners/secrets
2026-04-09 12:12:26 -03:00
ead3fcfdc3 fix(gitea-runner): enable privileged mode and debug logs
All checks were successful
Picsur Deploy / Validate Picsur Compose (pull_request) Successful in 2m31s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
2026-04-09 10:40:06 -03:00
6dbfb2d8df ci: re-test after cleanup
Some checks failed
Picsur Deploy / Validate Picsur Compose (pull_request) Failing after 5s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
2026-04-09 10:34:59 -03:00
84bdee62f4 ci: re-test after docker group fix
Some checks failed
Picsur Deploy / Validate Picsur Compose (pull_request) Failing after 5s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
2026-04-09 10:32:48 -03:00
7360b16a71 ci: re-trigger workflow test
Some checks failed
Picsur Deploy / Validate Picsur Compose (pull_request) Failing after 3s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
2026-04-09 10:27:57 -03:00
9e4217147f fix(workflow): use gitea-runner-hestia label instead of ubuntu-latest
Some checks failed
Picsur Deploy / Validate Picsur Compose (pull_request) Failing after 1m53s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
2026-04-09 10:15:09 -03:00
d4bf867657 Merge branch 'main' into feature/picsur-workflow
All checks were successful
Picsur Deploy / Validate Picsur Compose (pull_request) Successful in 10m7s
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been skipped
2026-04-09 10:00:51 -03:00
dc436b3518 feat(gitea-runner): add systemd service file + binary download (no secrets) 2026-04-09 03:06:33 -03:00
cc88ad5c05 fix(gitea-runner): fix config.yaml format and registration script 2026-04-09 02:17:25 -03:00
775ad3fcd6 fix: runner runs on Hestia, not Dockerino
- Changed network_mode to host (local execution)
- Updated labels and names to gitea-runner-hestia
- Fixed README references
- Removed external network dependency
2026-04-09 01:55:44 -03:00
af13a920c8 Merge pull request 'feat: Add Gitea Actions runner configuration' (#2) from feature/gitea-runner into main
Reviewed-on: #2
2026-04-09 01:50:09 -03:00
12d9fa08db feat: add Gitea Actions runner configuration
- docker-compose.yml for act_runner
- config.yaml template
- register.sh script
- README with installation instructions
2026-04-09 01:49:14 -03:00
a4240065e8 feat(picsur): add Gitea Actions workflow + named volume
Some checks failed
Picsur Deploy / Validate Picsur Compose (pull_request) Has been cancelled
Picsur Deploy / Deploy Picsur to Dockerino (pull_request) Has been cancelled
- Add workflow .gitea/workflows/picsur.yml
- Migrate from bind mount to named volume (data persists)
- Workflow: PR validates, push to main deploys
2026-04-09 01:26:22 -03:00
893e7dba7c feat: inicial IaC - estrutura base + Docker Compose + Ansible
- Estrutura Terraform para ER605/Omada
- Ansible inventory e role base para Dockerino
- Docker Compose files para todos os serviços do Dockerino
- Docker Compose para Media stack (Jellyfin, Sonarr, Radarr, etc)
- Documentação ARCHITECTURE.md e NEXT_STEPS.md (via Héstia)
2026-04-09 01:06:05 -03:00
a8c2f09b42 Initial commit 2026-04-09 00:59:52 -03:00