christianlempa-boilerplates/terraform/proxmox/provider.tf
2025-01-20 17:21:41 +01:00

42 lines
784 B
HCL

# Proxmox Provider
# ---
# Initial Provider Configuration for Proxmox
terraform {
required_version = ">= 0.13.0"
required_providers {
proxmox = {
source = "telmate/proxmox"
version = "3.0.1-rc6"
}
}
}
variable "proxmox_api_url" {
type = string
}
variable "proxmox_api_token_id" {
type = string
}
variable "proxmox_api_token_secret" {
type = string
}
variable "PUBLIC_SSH_KEY" {
# -- Public SSH Key, you want to upload to VMs and LXC containers.
type = string
sensitive = true
}
provider "proxmox" {
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
pm_tls_insecure = false # <-- (Optional) Change to true if you are using self-signed certificates
}