change: use username/password instead of ssh key
This commit is contained in:
@@ -12,7 +12,8 @@ provider "proxmox" {
|
|||||||
insecure = false
|
insecure = false
|
||||||
ssh {
|
ssh {
|
||||||
agent = false
|
agent = false
|
||||||
private_key = file("~/.ssh/id_ed25519")
|
# private_key = file("~/.ssh/id_ed25519")
|
||||||
username = "root"
|
username = var.proxmox_ssh_username
|
||||||
|
password = var.proxmox_ssh_password
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,4 +7,16 @@ variable "proxmox_api_token" {
|
|||||||
description = "Proxmox API token"
|
description = "Proxmox API token"
|
||||||
type = string
|
type = string
|
||||||
sensitive = true
|
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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user