feat(opentofu): define bare-metal host configuration

This commit is contained in:
Tibo De Peuter 2026-07-27 20:25:39 +02:00
parent 06500a8f01
commit 89cec4e0f3
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU
5 changed files with 169 additions and 72 deletions

View file

@ -0,0 +1,30 @@
terraform {
required_providers {
proxmox = {
source = "bpg/proxmox"
version = "~> 0.61.0"
}
}
}
provider "proxmox" {
# Endpoint and credentials will be picked up from environment variables
# or passed via the bootstrap script.
# PROXMOX_VE_ENDPOINT
# PROXMOX_VE_USERNAME
# PROXMOX_VE_PASSWORD
# PROXMOX_VE_INSECURE=true
}
module "proxmox_node" {
source = "../../modules/proxmox-node"
node_name = "mikoshi"
data_disk_id = "nvme-KXG80ZNV2T04_NVMe_KIOXIA_2048GB_241C11Y5EHAK"
zfs_pool_name = "data"
}
output "control_center_api_token" {
value = module.proxmox_node.control_center_api_token
sensitive = true
description = "The secret API token for control-center@pve."
}