added physical machines
This commit is contained in:
@@ -7,3 +7,16 @@ output "proxmox_endpoint_configured" {
|
|||||||
description = "Whether a non-empty endpoint has been provided."
|
description = "Whether a non-empty endpoint has been provided."
|
||||||
value = var.proxmox_endpoint != ""
|
value = var.proxmox_endpoint != ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output "physical_hosts" {
|
||||||
|
description = "Physical host inventory used for documentation"
|
||||||
|
value = local.physical_hosts
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
output "infrastructure_inventory" {
|
||||||
|
description = "Combined infrastructure inventory"
|
||||||
|
value = {
|
||||||
|
physical_hosts = local.physical_hosts
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
locals {
|
||||||
|
physical_hosts = {
|
||||||
|
pve = {
|
||||||
|
hostname = "pve"
|
||||||
|
type = "physical"
|
||||||
|
role = "proxmox"
|
||||||
|
management_ip = "pve.sweet.home"
|
||||||
|
os_family = "debian"
|
||||||
|
hypervisor = "proxmox"
|
||||||
|
location = "home"
|
||||||
|
notes = "Primary Proxmox VE host"
|
||||||
|
}
|
||||||
|
raspberrypi = {
|
||||||
|
hostname = "raspberrypi"
|
||||||
|
type = "physical"
|
||||||
|
role = "edge"
|
||||||
|
management_ip = "raspberrypi.tail13f623.ts.net"
|
||||||
|
os_family = "debian"
|
||||||
|
hypervisor = null
|
||||||
|
location = "riverglades"
|
||||||
|
notes = "Raspberry Pi host"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user