feat: support SSH key injection via Gitea secrets for CI pipelines #12

Merged
Damien merged 5 commits from feat/ci-ssh-key-support into dev 2026-05-03 17:41:11 +00:00
Showing only changes of commit c495b40def - Show all commits

View File

@@ -1,10 +1,10 @@
# =====================================================================
# ==========================================================================
# Déclaration des Providers Terraform
#
# Ce fichier indique à Terraform quels "plugins" il doit
# télécharger pour interagir avec les API externes (Proxmox, etc.)
# et comment les configurer.
# =====================================================================
# ==========================================================================
terraform {
required_version = ">= 1.5.0"
@@ -43,7 +43,8 @@ provider "proxmox" {
api_token = var.proxmox_api_token
insecure = true
ssh {
agent = true
username = "root"
agent = var.proxmox_ssh_private_key == "" ? true : false
username = "root"
private_key = var.proxmox_ssh_private_key != "" ? var.proxmox_ssh_private_key : null
}
}