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. # 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: hypervisor:
hosts: hosts:
jpphype1: jpphype1VMs:
hardwareMap: description: Hypervisor Configuration
title: 'All Hardware' file: true
description: This shows hardware available to the hypervisor and PCIe -> INT mapping. global: true
file: true syntax: json
readonly: true title: jpphype1
global: true # set to true to remove host drop down uiElements:
multiline: true - field: hostname
cpufree: label: Enter the hostname
title: 'Available CPU: 120' - field: role
description: Available CPU for this hypervisor. label: sensor or searchnode
readonly: true - field: network_mode
global: true # set to true to remove host drop down label: Choose static4 or dhcp4. If static4, populate IP details below.
memfree: - field: ip4
title: 'Available Memory: 120' label: IP Address with netmask. ex. 192.168.1.10/24
description: Available memory for this hypervisor. - field: gw4
readonly: true label: Gateway
global: true # set to true to remove host drop down - field: dns4
diskfree: label: DNS. Comma separated list. ex. 192.168.1.1,8.8.8.8
title: 'Available Disk: 3,4' - field: search4
description: Available disk for this hypervisor. label: Search domain
readonly: true - field: cpu
global: true # set to true to remove host drop down label: 'CPU cores to assign. Free: 120 | Total: 128'
copperfree: - field: memory
title: 'Available Copper NIC: 3,4,5,6' label: 'Memory to assign, in GB. Free: 112 | Total: 128'
description: Available copper NIC for this hypervisor. - field: disk
readonly: true label: 'Disk(s) for passthrough. Comma separated list. Free: 2 | Total: 1,2'
global: true # set to true to remove host drop down - field: copper
sfpfree: label: 'Copper port(s) for passthrough. Comma separated list. Free: 3,4 |
title: 'Available SFP NIC: 7,8,9,10' Total: 1,2,3,4'
description: Available SFP NIC for this hypervisor. - field: sfp
readonly: true label: 'SFP port(s) for passthrough. Comma separated list. Free: 5,6,7,8 |
global: true # set to true to remove host drop down Total: 5,6,7,8'
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