mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
virtual_node_manager lookup hardware from defaults. allocate hw in vm file
This commit is contained in:
@@ -2,81 +2,47 @@ hypervisor:
|
|||||||
model:
|
model:
|
||||||
testModel:
|
testModel:
|
||||||
hardware:
|
hardware:
|
||||||
cpu:
|
cpu: 128
|
||||||
total: 128
|
memory: 128
|
||||||
free: 128
|
disk:
|
||||||
memory:
|
1: pci_0000_c7_00_0
|
||||||
total: 128
|
2: pci_0000_c8_00_0
|
||||||
free: 128
|
|
||||||
disks:
|
|
||||||
free:
|
|
||||||
3: pci_0000_c7_00_0
|
|
||||||
4: pci_0000_c8_00_0
|
|
||||||
claimed:
|
|
||||||
1: pci_0000_c5_00_0 # hypervisor
|
|
||||||
2: pci_0000_c6_00_0 # hypervisor
|
|
||||||
copper:
|
copper:
|
||||||
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
|
|
||||||
claimed:
|
|
||||||
1: pci_0000_c1_00_0 # hypervisor
|
|
||||||
2: pci_0000_c1_00_1 # hypervisor
|
|
||||||
sfp:
|
|
||||||
free:
|
|
||||||
5: pci_0000_02_00_0
|
|
||||||
6: pci_0000_02_00_1
|
|
||||||
7: pci_0000_41_00_0
|
|
||||||
8: pci_0000_41_00_1
|
|
||||||
claimed: {}
|
|
||||||
model1:
|
|
||||||
hardware:
|
|
||||||
cpu:
|
|
||||||
total: 128
|
|
||||||
free: 128
|
|
||||||
memory:
|
|
||||||
total: 128
|
|
||||||
free: 128
|
|
||||||
disks:
|
|
||||||
free:
|
|
||||||
3: pci_0000_c7_00_0
|
|
||||||
4: pci_0000_c8_00_0
|
|
||||||
claimed:
|
|
||||||
1: pci_0000_c5_00_0
|
|
||||||
2: pci_0000_c6_00_0
|
|
||||||
copper:
|
|
||||||
free:
|
|
||||||
1: pci_0000_c4_00_0
|
1: pci_0000_c4_00_0
|
||||||
2: pci_0000_c4_00_1
|
2: pci_0000_c4_00_1
|
||||||
3: pci_0000_c4_00_2
|
3: pci_0000_c4_00_2
|
||||||
4: pci_0000_c4_00_3
|
4: pci_0000_c4_00_3
|
||||||
claimed: {}
|
|
||||||
sfp:
|
sfp:
|
||||||
free:
|
5: pci_0000_02_00_0
|
||||||
5: pci_0000_41_00_0
|
6: pci_0000_02_00_1
|
||||||
6: pci_0000_41_00_1
|
7: pci_0000_41_00_0
|
||||||
claimed: {}
|
8: pci_0000_41_00_1
|
||||||
model2:
|
model1:
|
||||||
hardware:
|
hardware:
|
||||||
cpu:
|
cpu: 128
|
||||||
total: 128
|
memory: 128
|
||||||
free: 128
|
disk:
|
||||||
memory:
|
1: pci_0000_c7_00_0
|
||||||
total: 512
|
2: pci_0000_c8_00_0
|
||||||
free: 512
|
copper:
|
||||||
disks:
|
1: pci_0000_c4_00_0
|
||||||
free:
|
2: pci_0000_c4_00_1
|
||||||
3: pci_0000_c8_00_0
|
3: pci_0000_c4_00_2
|
||||||
4: pci_0000_c9_00_0
|
4: pci_0000_c4_00_3
|
||||||
5: pci_0000_c10_00_0
|
sfp:
|
||||||
6: pci_0000_c11_00_0
|
5: pci_0000_02_00_0
|
||||||
claimed:
|
6: pci_0000_02_00_1
|
||||||
1: pci_0000_c6_00_0
|
7: pci_0000_41_00_0
|
||||||
2: pci_0000_c7_00_0
|
8: pci_0000_41_00_1
|
||||||
|
model2:
|
||||||
|
cpu: 256
|
||||||
|
memory: 256
|
||||||
|
disk:
|
||||||
|
1: pci_0000_c7_00_0
|
||||||
|
2: pci_0000_c8_00_0
|
||||||
|
3: pci_0000_c9_00_0
|
||||||
|
4: pci_0000_c10_00_0
|
||||||
copper:
|
copper:
|
||||||
free:
|
|
||||||
1: pci_0000_c4_00_0
|
1: pci_0000_c4_00_0
|
||||||
2: pci_0000_c4_00_1
|
2: pci_0000_c4_00_1
|
||||||
3: pci_0000_c4_00_2
|
3: pci_0000_c4_00_2
|
||||||
@@ -85,9 +51,8 @@ hypervisor:
|
|||||||
6: pci_0000_c5_00_1
|
6: pci_0000_c5_00_1
|
||||||
7: pci_0000_c5_00_2
|
7: pci_0000_c5_00_2
|
||||||
8: pci_0000_c5_00_3
|
8: pci_0000_c5_00_3
|
||||||
claimed: {}
|
|
||||||
sfp:
|
sfp:
|
||||||
free:
|
9: pci_0000_02_00_0
|
||||||
9: pci_0000_41_00_0
|
10: pci_0000_02_00_1
|
||||||
10: pci_0000_41_00_1
|
11: pci_0000_41_00_0
|
||||||
claimed: {}
|
12: pci_0000_41_00_1
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -21,8 +21,7 @@ hypervisor:
|
|||||||
uiElements:
|
uiElements:
|
||||||
- field: hostname
|
- field: hostname
|
||||||
label: Enter the hostname
|
label: Enter the hostname
|
||||||
forcedType: string
|
- field: role
|
||||||
- field: nodetype
|
|
||||||
label: sensor or searchnode
|
label: sensor or searchnode
|
||||||
- field: network_mode
|
- field: network_mode
|
||||||
label: Choose static4 or dhcp4. If static4, populate IP details below.
|
label: Choose static4 or dhcp4. If static4, populate IP details below.
|
||||||
@@ -31,7 +30,7 @@ hypervisor:
|
|||||||
- field: gw4
|
- field: gw4
|
||||||
label: Gateway
|
label: Gateway
|
||||||
- field: dns4
|
- field: dns4
|
||||||
label: DNS. Comma seperated list. ex. 192.168.1.1,8.8.8.8
|
label: DNS. Comma separated list. ex. 192.168.1.1,8.8.8.8
|
||||||
- field: search4
|
- field: search4
|
||||||
label: Search domain
|
label: Search domain
|
||||||
- field: cpu
|
- field: cpu
|
||||||
@@ -39,11 +38,11 @@ hypervisor:
|
|||||||
- field: memory
|
- field: memory
|
||||||
label: Memory, in GB to assign. ex. 16
|
label: Memory, in GB to assign. ex. 16
|
||||||
- field: disk
|
- field: disk
|
||||||
label: Choose a disk or disks to assign for passthrough. Comma seperated list.
|
label: Choose a disk or disks to assign for passthrough. Comma separated list.
|
||||||
- field: copper
|
- field: copper
|
||||||
label: Choose a copper port or ports to assign for passthrough. Comma seperated list.
|
label: Choose a copper port or ports to assign for passthrough. Comma separated list.
|
||||||
- filed: sfp
|
- field: sfp
|
||||||
label: Choose a sfp port or ports to assign for passthrough. Comma seperated list.
|
label: Choose a sfp port or ports to assign for passthrough. Comma separated list.
|
||||||
file: true
|
file: true
|
||||||
global: true
|
global: true
|
||||||
|
|
||||||
|
|||||||
@@ -14,5 +14,10 @@ hypervisor_host_directory_{{hypervisor}}:
|
|||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/so/saltstack/local/salt/hypervisor/hosts/{{hypervisor}}
|
- name: /opt/so/saltstack/local/salt/hypervisor/hosts/{{hypervisor}}
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
- user: socore
|
||||||
|
- group: socore
|
||||||
|
- recurse:
|
||||||
|
- user
|
||||||
|
- group
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user