terraform-homelab/provider.tf
2024-10-26 22:29:05 +10:00

57 lines
892 B
HCL
Executable File

# Proxmox Provider
# ---
# Initial Provider Configuration for Proxmox
terraform {
required_version = ">= 0.13.0"
required_providers {
proxmox = {
source = "Telmate/proxmox"
version = "3.0.1-rc4"
}
}
}
variable "proxmox_api_url" {
type = string
}
variable "proxmox_api_token_id" {
type = string
}
variable "proxmox_api_token_secret" {
type = string
}
variable "ci_user" {
type = string
}
variable "ci_password" {
type = string
}
variable "ssh_key" {
type = string
}
variable "teams" {
type = string
}
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_timeout = 3600
pm_parallel = 2 # Fix vm hdd lock timeout
# (Optional) Skip TLS Verification
# pm_tls_insecure = true
}