38 lines
665 B
HCL
38 lines
665 B
HCL
terraform {
|
|
required_version = ">=0.14"
|
|
required_providers {
|
|
proxmox = {
|
|
source = "Telmate/proxmox"
|
|
version = "3.0.1-rc1"
|
|
}
|
|
}
|
|
}
|
|
variable "root_password" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "ssh_public_key" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
variable "proxmox_api_url" {
|
|
type = string
|
|
|
|
}
|
|
variable "proxmox_api_token_id" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
variable "proxmox_api_token_secret" {
|
|
type = string
|
|
sensitive = true
|
|
}
|
|
|
|
provider "proxmox" {
|
|
pm_tls_insecure = true
|
|
pm_api_url = var.proxmox_api_url
|
|
pm_api_token_id = var.proxmox_api_token_id
|
|
pm_api_token_secret= var.proxmox_api_token_secret
|
|
} |