provider.tf 819 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. terraform {
  2. required_version = ">= 0.13.0"
  3. required_providers {
  4. proxmox = {
  5. # LINK https://github.com/Telmate/terraform-provider-proxmox
  6. source = "telmate/proxmox"
  7. version = "3.0.1-rc7"
  8. }
  9. }
  10. }
  11. variable "PROXMOX_URL" {
  12. type = string
  13. }
  14. variable "PROXMOX_USER" {
  15. type = string
  16. sensitive = true
  17. }
  18. variable "PROXMOX_TOKEN" {
  19. type = string
  20. sensitive = true
  21. }
  22. variable "PUBLIC_SSH_KEY" {
  23. # NOTE This is the publich 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_URL
  29. pm_api_token_id = var.PROXMOX_USER
  30. pm_api_token_secret = var.PROXMOX_TOKEN
  31. # NOTE Optional, but recommended to set to true if you are using self-signed certificates.
  32. pm_tls_insecure = false
  33. }