mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 19:52:51 +01:00
setup bridge for hypervisor using $MNIC
This commit is contained in:
@@ -1189,12 +1189,16 @@ get_minion_type() {
|
|||||||
hypervisor_local_states() {
|
hypervisor_local_states() {
|
||||||
# these states need to run before the first highstate so that we dont deal with the salt-minion restarting
|
# these states need to run before the first highstate so that we dont deal with the salt-minion restarting
|
||||||
# and we need these setup prior to the highstate
|
# and we need these setup prior to the highstate
|
||||||
|
info "Check if hypervisor or managerhype"
|
||||||
if [ $is_hypervisor ] || [ $is_managerhype ]; then
|
if [ $is_hypervisor ] || [ $is_managerhype ]; then
|
||||||
salt-call state.apply libvirt.64962 --local --file-root=../salt/ -l info
|
info "Running libvirt states for hypervisor"
|
||||||
salt-call state.apply libvirt.bridge --local --file-root=../salt/ -l info pillar='{"host": {"mainint": "enp1s0"}}'
|
logCmd "salt-call state.apply libvirt.64962 --local --file-root=../salt/ -l info"
|
||||||
|
info "Setting up bridge for $MNIC"
|
||||||
|
salt-call state.apply libvirt.bridge --local --file-root=../salt/ -l info pillar="{\"host\": {\"mainint\": \"$MNIC\"}}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
install_cleanup() {
|
install_cleanup() {
|
||||||
if [ -f "$temp_install_dir" ]; then
|
if [ -f "$temp_install_dir" ]; then
|
||||||
info "Installer removing the following files:"
|
info "Installer removing the following files:"
|
||||||
|
|||||||
Reference in New Issue
Block a user