mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
update service file, use salt.minion state to update mine_functions
This commit is contained in:
@@ -5,11 +5,6 @@
|
|||||||
|
|
||||||
# We do not import GLOBALS in this state because it is called during setup
|
# We do not import GLOBALS in this state because it is called during setup
|
||||||
include:
|
include:
|
||||||
{# If we update the mine functions for the so-hypervisor node, then it will not be able to update the mine when the state run. #}
|
|
||||||
{# This state is called from so-functions during setup and the so-hypervisor node would not have an accepted minion key and therefore couldn't update mine #}
|
|
||||||
{% if grains.role == 'so-managerhype '%}
|
|
||||||
- salt.mine_functions
|
|
||||||
{% endif %}
|
|
||||||
- salt.minion.service_file
|
- salt.minion.service_file
|
||||||
|
|
||||||
down_original_mgmt_interface:
|
down_original_mgmt_interface:
|
||||||
@@ -37,15 +32,10 @@ wait_for_br0_ip:
|
|||||||
- cmd: down_original_mgmt_interface
|
- cmd: down_original_mgmt_interface
|
||||||
- onchanges_in:
|
- onchanges_in:
|
||||||
- file: salt_minion_service_unit_file
|
- file: salt_minion_service_unit_file
|
||||||
{% if grains.role == 'so-managerhype '%}
|
|
||||||
- file: mine_functions
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if grains.role == 'so-managerhype '%}
|
|
||||||
restart_salt_minion_service:
|
restart_salt_minion_service:
|
||||||
service.running:
|
service.running:
|
||||||
- name: salt-minion
|
- name: salt-minion
|
||||||
- enable: True
|
- enable: True
|
||||||
- listen:
|
- listen:
|
||||||
- file: mine_functions
|
- file: salt_minion_service_unit_file
|
||||||
{% endif %}
|
|
||||||
|
|||||||
@@ -1195,10 +1195,8 @@ hypervisor_local_states() {
|
|||||||
logCmd "salt-call state.apply libvirt.64962 --local --file-root=../salt/ -l info queue=True"
|
logCmd "salt-call state.apply libvirt.64962 --local --file-root=../salt/ -l info queue=True"
|
||||||
info "Setting up bridge for $MNIC"
|
info "Setting up bridge for $MNIC"
|
||||||
salt-call state.apply libvirt.bridge --local --file-root=../salt/ -l info pillar='{"host": {"mainint": "'$MNIC'"}}' queue=True
|
salt-call state.apply libvirt.bridge --local --file-root=../salt/ -l info pillar='{"host": {"mainint": "'$MNIC'"}}' queue=True
|
||||||
if [ $is_managerhype ]; then
|
|
||||||
logCmd "salt-call state.apply salt.minion queue=True"
|
logCmd "salt-call state.apply salt.minion queue=True"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_cleanup() {
|
install_cleanup() {
|
||||||
|
|||||||
Reference in New Issue
Block a user