provider.tf 784 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Proxmox Provider
  2. # ---
  3. # Initial Provider Configuration for Proxmox
  4. terraform {
  5. required_version = ">= 0.13.0"
  6. required_providers {
  7. proxmox = {
  8. source = "telmate/proxmox"
  9. version = "3.0.1-rc6"
  10. }
  11. }
  12. }
  13. variable "proxmox_api_url" {
  14. type = string
  15. }
  16. variable "proxmox_api_token_id" {
  17. type = string
  18. }
  19. variable "proxmox_api_token_secret" {
  20. type = string
  21. }
  22. variable "PUBLIC_SSH_KEY" {
  23. # -- Public SSH Key, you want to upload to VMs and LXC containers.
  24. type = string
  25. sensitive = true
  26. }
  27. provider "proxmox" {
  28. pm_api_url = var.proxmox_api_url
  29. pm_api_token_id = var.proxmox_api_token_id
  30. pm_api_token_secret = var.proxmox_api_token_secret
  31. pm_tls_insecure = false # <-- (Optional) Change to true if you are using self-signed certificates
  32. }