Commit graph

23 commits

Author SHA1 Message Date
262f5b19e4 fix(terraform): Configuration nœuds cluster et stockage 2025-11-26 19:33:19 +01:00
573852579f feat(terraform): Mise à jour provider Proxmox v3.0.2-rc05
Update provider version and adjust resource syntax for compatibility.
2025-11-26 19:31:03 +01:00
350b491aef fix(cd): Ajout étape setup OpenTofu dans tous les jobs déploiement
Deployment jobs were failing with 'tofu: command not found'. Added Setup OpenTofu step to deploy-pve1, deploy-pve2, and deploy-pve3 jobs.
2025-11-13 20:03:49 +01:00
2f4b8c2ed8 fix(cd): Remplacement workflow réutilisable par jobs CI inline
Forgejo does not fully support reusable workflows (uses:). Duplicated the Terraform validation job directly in the CD workflow to avoid the blocking state.
2025-11-13 20:00:53 +01:00
cbb7c14934 fix(ci): Ajout trigger workflow_call pour intégration CD
The CI workflow needs workflow_call to be callable by the CD workflow. Without this, the CD workflow cannot invoke CI as a reusable workflow.
2025-11-13 19:56:13 +01:00
924594989e fix(ci): Exclusion branche main du workflow CI
CI workflow now runs only on feature branches and PRs. On main, only CD workflow runs (which internally calls CI). This prevents duplicate CI runs.
2025-11-13 19:52:52 +01:00
659465fe9e fix(ci): Utilisation variables environnement au lieu fichier tfvars
Remove terraform.tfvars.example copy that was overriding secret values. Now using TF_VAR_* environment variables exclusively to properly inject secrets from Forgejo.
2025-11-13 19:47:47 +01:00
17f3e25c0e fix(terraform): Mise à jour ID token dans exemple de terraform vers opentofu
The example file had root@pam!terraform hardcoded, which was overriding the secret value. Updated to match the actual token name.
2025-11-13 19:45:17 +01:00
a00f8d57a1 fix(ci): Renommage secrets pour éviter restriction préfixe FORGEJO_
Forgejo does not allow secret names starting with FORGEJO_. Renamed:
- FORGEJO_TOKEN -> GIT_TOKEN
- FORGEJO_REPO_URL -> GIT_REPO_URL
2025-11-13 19:41:46 +01:00
70c26580c2 fix(ci): Downgrade upload-artifact v3 pour compatibilité Forgejo
upload-artifact@v4 is not supported on Forgejo/GHES. Downgrade to v3 to ensure artifact uploads work correctly.
2025-11-13 19:30:40 +01:00
d5d477b05c feat(ci): Mise à jour workflow déploiement pour Ubuntu 24.04 et LINSTOR
All checks were successful
CI - Validation / Terraform Validation (push) Successful in 12s
CI - Validation / Ansible Validation (push) Successful in 1m4s
CI - Validation / Kubernetes Validation (push) Successful in 7s
CI - Validation / Security Scan (push) Successful in 12s
Update all deployment jobs to use Ubuntu 24.04 LTS template and LINSTOR storage backend for improved reliability.
2025-11-13 19:06:25 +01:00
f39510446c feat(terraform): Mise à jour Ubuntu 24.04 LTS et stockage LINSTOR
Update default configuration to use Ubuntu 24.04 LTS template and configure LINSTOR as the storage backend for improved reliability and performance.
2025-11-13 18:54:26 +01:00
9cc332a14d fix(flux): Mise à jour URL dépôt de infra vers Homelab
- Change GitRepository URL to match new repository name
- Repository renamed from 'infra' to 'Homelab'
2025-11-11 11:06:16 +01:00
184a3e4276 feat(ci): Ajout support HA pour pannes de nœuds
Modified CI/CD workflows to gracefully handle Proxmox node failures:

CI Workflow (ci.yml):
- Terraform Plan only runs on main branch (faster CI on feature branches)
- Plan failures on unavailable nodes don't block validation
- Added warning message when plan fails

Deploy Workflow (deploy.yml):
- Added continue-on-error to all deploy jobs (pve1, pve2, pve3)
- Modified cluster validation to require 2/3 nodes (quorum)
- Enhanced deployment summary with success counter
- Exit codes: 0 if >=2 nodes, 1 if 1 node, 1 if 0 nodes

This ensures the infrastructure remains operational even when one
Proxmox node is down, maintaining HA principles.
2025-11-07 11:32:42 +01:00
a855240c6d fix(terraform): Ajout configurations VMs manquantes dans exemple tfvars
Added VM configuration objects for all three nodes:
- k3s_server_1_config: 6 cores, 12GB RAM, 100G disk
- k3s_server_2_config: 6 cores, 12GB RAM, 100G disk
- etcd_witness_config: 2 cores, 2GB RAM, 20G disk

Removed undeclared 'management_bridge' variable that was causing
warnings in terraform plan.

This allows terraform plan to execute successfully in CI with
the example configuration file.
2025-11-07 11:24:29 +01:00
a7b03c12ff fix(terraform): Mise à jour syntaxe disque pour provider Proxmox v2.9
Changed from nested `disks` block (v3.0 syntax) to flat `disk` block
(v2.9 syntax):
- disks { scsi { scsi0 { disk {...} } } } → disk { slot = 0, ... }
- Added explicit slot, type, and iothread parameters
- Maintains same functionality with v2.9-compatible syntax
2025-11-07 11:20:07 +01:00
60e500087c fix(terraform): Downgrade provider Proxmox vers v2.9 stable
The v3.0 provider is not yet available as a stable release in the
OpenTofu/Terraform registry. Downgraded to v2.9 which is the latest
stable version.

Also fixed minor yamllint issues in flux.yml:
- Added space after comment marker
- Removed trailing blank line
2025-11-07 10:51:53 +01:00
a5283e316b fix(ansible): Résolution violations linting YAML
Fixed yamllint errors and warnings across all Ansible files:
- Reformatted long lines to stay within 80 character limit
- Standardized boolean values to use true/false instead of yes/no
- Fixed YAML folding syntax for multiline strings
- Removed erroneous triple quotes in k3s-server tasks

This resolves all yamllint issues reported by the CI pipeline.
2025-11-07 10:40:53 +01:00
44e45a0f3d feat(ci): Implémentation workflow Terraform multi-modules 2025-11-07 10:27:09 +01:00
830b7229db fix(ci): Correction problèmes outils et erreurs workflow 2025-11-07 10:21:55 +01:00
6bf15cfe3c fix(ci): Résolution problèmes dépendances dans workflow 2025-11-07 10:13:09 +01:00
bdfcaf5f46 fix: Erreurs workflow CI (OpenTofu, sudo) 2025-11-07 10:08:20 +01:00
40dc0f4184 feat: Commit initial 2025-11-07 09:33:38 +01:00