From 3bb9c97d6927bd20f2118dee18318151d080c682 Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Sun, 3 May 2026 17:02:31 +0000 Subject: [PATCH] feat: add SSH key variables for CI support Add proxmox_ssh_private_key for provider SSH in CI pipelines. Add admin_ssh_public_key as content-based alternative to file path. Both default to empty string for backward compatibility with local usage. --- terraform/prod/variables.tf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/terraform/prod/variables.tf b/terraform/prod/variables.tf index 4efe593..15a2649 100644 --- a/terraform/prod/variables.tf +++ b/terraform/prod/variables.tf @@ -17,12 +17,25 @@ variable "proxmox_api_token" { sensitive = true } +variable "proxmox_ssh_private_key" { + description = "Clé SSH privée pour la connexion Proxmox (utilisée en CI). Si vide, l'agent SSH local est utilisé." + type = string + sensitive = true + default = "" +} + variable "tailscale_auth_key" { description = "Clé d'authentification Tailscale pour enregistrer les noeuds." type = string sensitive = true } +variable "admin_ssh_public_key" { + description = "Contenu de la clé SSH publique à autoriser (utilisé en CI). Prioritaire sur admin_ssh_public_key_path." + type = string + default = "" +} + variable "admin_ssh_public_key_path" { description = "Chemin vers le fichier de la clé SSH publique à autoriser." type = string