mirror of
https://github.com/mulgadc/spinifex.git
synced 2026-10-19 19:01:42 +00:00
29 lines
553 B
Terraform
29 lines
553 B
Terraform
terraform {
|
|
required_providers {
|
|
proxmox = {
|
|
source = "bpg/proxmox"
|
|
version = "0.52.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
# API token is read from PROXMOX_VE_API_TOKEN env var automatically
|
|
provider "proxmox" {
|
|
endpoint = var.proxmox_endpoint
|
|
insecure = true
|
|
|
|
ssh {
|
|
agent = false
|
|
username = var.proxmox_ssh_username
|
|
private_key = file(pathexpand(var.ssh_private_key_path))
|
|
|
|
dynamic "node" {
|
|
for_each = var.nodes
|
|
content {
|
|
name = node.value.name
|
|
address = node.value.address
|
|
}
|
|
}
|
|
}
|
|
}
|