change: use username/password instead of ssh key

This commit is contained in:
2025-12-11 19:50:04 +00:00
parent 72bf321145
commit b028018d7e
2 changed files with 15 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ provider "proxmox" {
insecure = false
ssh {
agent = false
private_key = file("~/.ssh/id_ed25519")
username = "root"
# private_key = file("~/.ssh/id_ed25519")
username = var.proxmox_ssh_username
password = var.proxmox_ssh_password
}
}

View File

@@ -7,4 +7,16 @@ variable "proxmox_api_token" {
description = "Proxmox API token"
type = string
sensitive = true
}
variable "proxmox_ssh_username" {
description = "Proxmox SSH username"
type = string
sensitive = true
}
variable "proxmox_ssh_password" {
description = "Proxmox SSH password"
type = string
sensitive = true
}