feat(netbox): add custom field, VLAN, and prefix initializers (Phase 1.1-1.4)

This commit is contained in:
2026-02-25 21:06:32 -06:00
parent 63b9a8fd13
commit b33bd5f252
4 changed files with 73 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
# NetBox Custom Fields for VM Provisioning Pipeline
# Object type: Virtualization > Virtual Machine
#
# These fields must be created in NetBox before the pipeline can function.
# Operators must populate these fields before setting VM status to Staged.
#
# To apply: NetBox Admin > Custom Fields > Import (or create manually)
custom_fields:
- name: proxmox_template
label: Proxmox Template
type: selection
object_types:
- virtualization.virtualmachine
required: true
description: VM template to clone on Proxmox. Must match an available template on the target node.
choices:
- ubuntu-24.04-small
- ubuntu-24.04-medium
- ubuntu-24.04-large
- ubuntu-24.04-large-plus
- ubuntu-24.04-xlarge
- ubuntu-24.04-xlarge-plus
- name: proxmox_node
label: Proxmox Node
type: selection
object_types:
- virtualization.virtualmachine
required: true
description: >
Target node for final VM placement. VM is always cloned from templates
on fantasyland, then migrated to this node by Terraform automatically.
choices:
- fantasyland
- main-street-station
- tomorrowland
- name: proxmox_datastore
label: Proxmox Datastore
type: selection
object_types:
- virtualization.virtualmachine
required: true
description: Storage backend for the VM disk on the target Proxmox node.
choices:
- liberty-tree
- name: provisioning_notes
label: Provisioning Notes
type: text
object_types:
- virtualization.virtualmachine
required: false
description: Free-text field for operator notes during provisioning.

View File

@@ -0,0 +1,8 @@
# NetBox IP Prefix Definitions
# Scope: Prefixes used by the VM provisioning pipeline
prefixes:
- prefix: 10.1.71.0/24
status: active
vlan: Server Trusted
description: Server Trusted VLAN — infrastructure services, VM hosts, pipeline systems

View File

@@ -0,0 +1,10 @@
# NetBox VLAN Definitions
# Scope: VLANs used by the VM provisioning pipeline
#
# Additional VLANs can be added as pipeline scope expands.
vlans:
- name: Server Trusted
vid: 71
status: active
description: Infrastructure services and VM hosts (10.1.71.0/24)