chore(terraform): update version constraint and allow tfvars
Some checks failed
Terraform CI/CD / Validate (push) Failing after 1s
Terraform CI/CD / Plan (push) Has been skipped
Terraform CI/CD / Apply (push) Has been skipped

- Remove `*.tfvars` from .gitignore to allow tracking variable files.
- Enforce Terraform version to be greater than or equal to 1.5.0 in prod configuration.
This commit is contained in:
darnodo
2025-12-08 10:22:31 +01:00
parent ba4b530635
commit 6efb997684
3 changed files with 54 additions and 1 deletions

1
.gitignore vendored
View File

@@ -2,7 +2,6 @@
.terraform/
*.tfstate
*.tfstate.*
*.tfvars
# Fichiers sensibles d'Ansible
*.vault

View File

@@ -7,6 +7,7 @@
# =====================================================================
terraform {
required_version = ">= 1.5.0"
# ---------------------------------------------------------------------------
# Backend S3 - Stockage distant du state Terraform
#

View File

@@ -0,0 +1,53 @@
# terraform.tfvars.example
# Fichier d'exemple pour la configuration Terraform du homelab
#
# Instructions :
# 1. Copiez ce fichier vers terraform.tfvars
# 2. Personnalisez les valeurs selon votre environnement
# 3. Le fichier terraform.tfvars est ignoré par Git pour la sécurité
#############################
# Configuration Proxmox
#############################
# URL de votre serveur Proxmox (REQUIS)
proxmox_url = "https://pve01.taila5ad8.ts.net:8006"
# Nœud Proxmox cible (défaut: pve01)
target_node = "pve01"
#############################
# Configuration réseau
#############################
# Suffixe de domaine pour les VMs
domain_suffix = "taila5ad8.ts.net"
#############################
# Configuration SSH
#############################
# Chemin vers votre clé SSH publique
admin_ssh_public_key_path = "~/.ssh/keys/id_rsa.pub"
# Utilisateur par défaut sur les VMs
default_vm_user = "damien"
virtual_machines = {}
#############################
# Notes de configuration
#############################
# Templates requis sur Proxmox :
# - Template Ubuntu avec tags : ["ubuntu", "template"]
# - Template Debian avec tags : ["debian", "template"]
# - Template Alpine avec tags : ["alpine", "template"]
# - Template Rocky avec tags : ["rocky", "template"]
# - Template CentOS avec tags : ["centos", "template"]
# Ressources recommandées par type de service :
# - Monitoring : 2 CPU, 4GB RAM, 30GB disque
# - Web server : 2 CPU, 2GB RAM, 20GB disque
# - Database : 4+ CPU, 8GB+ RAM, 50GB+ disque
# - Kubernetes : 4+ CPU, 4GB+ RAM, 40GB+ disque