60 lines
No EOL
919 B
HCL
60 lines
No EOL
919 B
HCL
terraform {
|
|
|
|
required_providers {
|
|
proxmox = {
|
|
source = "bpg/proxmox"
|
|
version = ">= 0.58.1"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "proxmox" {
|
|
endpoint = var.virtual_environment_endpoint
|
|
api_token = var.virtual_environment_api
|
|
insecure = true
|
|
|
|
ssh {
|
|
agent = true
|
|
username = "root"
|
|
node {
|
|
name = "prox"
|
|
address = var.prox_ip_address
|
|
}
|
|
}
|
|
}
|
|
|
|
variable "virtual_environment_endpoint" {
|
|
type = string
|
|
}
|
|
|
|
variable "virtual_environment_api" {
|
|
type = string
|
|
}
|
|
|
|
variable "arrbuntu_ip_address" {
|
|
type = string
|
|
}
|
|
|
|
variable "vlan_gateway" {
|
|
type = string
|
|
}
|
|
|
|
variable "downloaders_ip_address" {
|
|
type = string
|
|
}
|
|
|
|
variable "whisper_ip_address" {
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_password" {
|
|
type = string
|
|
}
|
|
|
|
variable "ssh_username" {
|
|
type = string
|
|
}
|
|
|
|
variable "prox_ip_address" {
|
|
type = string
|
|
} |