new examples

This commit is contained in:
Josh Patterson
2025-02-16 02:31:52 -05:00
parent f46548ed88
commit 8ffd4fc664
2 changed files with 33 additions and 96 deletions

View File

@@ -1,32 +0,0 @@
# this file will exist in /opt/so/saltstack/local/salt/hypervisor/hosts/HOSTNAME/hardwareMap
hypervisor:
hardware:
copper:
claimed:
1: pci_0000_c1_00_0
2: pci_0000_c1_00_1
free:
3: pci_0000_c4_00_0
4: pci_0000_c4_00_1
5: pci_0000_c4_00_2
6: pci_0000_c4_00_3
cpu:
free: 120
total: 120
disk:
claimed:
1: pci_0000_c5_00_0
2: pci_0000_c6_00_0
free:
3: pci_0000_c7_00_0
4: pci_0000_c8_00_0
memory:
free: 120
total: 120
sfp:
claimed: {}
free:
8: pci_0000_02_00_1
7: pci_0000_02_00_0
9: pci_0000_41_00_0
10: pci_0000_41_00_1

View File

@@ -1,67 +1,36 @@
# This is the start of an example of what this file will look like. It will be generated by Salt, so this yaml file is not used by Salt.
hypervisor:
hosts:
jpphype1:
hardwareMap:
title: 'All Hardware'
description: This shows hardware available to the hypervisor and PCIe -> INT mapping.
file: true
readonly: true
global: true # set to true to remove host drop down
multiline: true
cpufree:
title: 'Available CPU: 120'
description: Available CPU for this hypervisor.
readonly: true
global: true # set to true to remove host drop down
memfree:
title: 'Available Memory: 120'
description: Available memory for this hypervisor.
readonly: true
global: true # set to true to remove host drop down
diskfree:
title: 'Available Disk: 3,4'
description: Available disk for this hypervisor.
readonly: true
global: true # set to true to remove host drop down
copperfree:
title: 'Available Copper NIC: 3,4,5,6'
description: Available copper NIC for this hypervisor.
readonly: true
global: true # set to true to remove host drop down
sfpfree:
title: 'Available SFP NIC: 7,8,9,10'
description: Available SFP NIC for this hypervisor.
readonly: true
global: true # set to true to remove host drop down
nodes:
description: List of VMs.
syntax: json
uiElements:
- field: hostname
label: Enter the hostname
forcedType: string
- field: nodetype
label: sensor or searchnode
- field: network_mode
label: Choose static4 or dhcp4. If static4, populate IP details below.
- field: ip4
label: IP Address with netmask. ex. 192.168.1.10/24
- field: gw4
label: Gateway
- field: dns4
label: DNS. Comma seperated list. ex. 192.168.1.1,8.8.8.8
- field: search4
label: Search domain
- field: cpu
label: Number of CPU cores to assign. ex. 8
- field: memory
label: Memory, in GB to assign. ex. 16
- field: disk
label: Choose a disk or disks to assign for passthrough. Comma seperated list.
- field: copper
label: Choose a copper port or ports to assign for passthrough. Comma seperated list.
- filed: sfp
label: Choose a sfp port or ports to assign for passthrough. Comma seperated list.
file: true
global: true # set to true to remove host drop down
jpphype1VMs:
description: Hypervisor Configuration
file: true
global: true
syntax: json
title: jpphype1
uiElements:
- field: hostname
label: Enter the hostname
- field: role
label: sensor or searchnode
- field: network_mode
label: Choose static4 or dhcp4. If static4, populate IP details below.
- field: ip4
label: IP Address with netmask. ex. 192.168.1.10/24
- field: gw4
label: Gateway
- field: dns4
label: DNS. Comma separated list. ex. 192.168.1.1,8.8.8.8
- field: search4
label: Search domain
- field: cpu
label: 'CPU cores to assign. Free: 120 | Total: 128'
- field: memory
label: 'Memory to assign, in GB. Free: 112 | Total: 128'
- field: disk
label: 'Disk(s) for passthrough. Comma separated list. Free: 2 | Total: 1,2'
- field: copper
label: 'Copper port(s) for passthrough. Comma separated list. Free: 3,4 |
Total: 1,2,3,4'
- field: sfp
label: 'SFP port(s) for passthrough. Comma separated list. Free: 5,6,7,8 |
Total: 5,6,7,8'