43 lines
710 B
Terraform
43 lines
710 B
Terraform
terraform {
|
|
required_version = ">=0.12"
|
|
required_providers {
|
|
proxmox = {
|
|
source = "Telmate/proxmox"
|
|
version = "3.0.1-rc1"
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "instance_id" {
|
|
type = number
|
|
}
|
|
|
|
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
|
|
} |