mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
add receiver node
This commit is contained in:
@@ -110,7 +110,7 @@ base:
|
||||
- elasticsearch.auth
|
||||
- global
|
||||
- minions.{{ grains.id }}
|
||||
- data.receivertab
|
||||
- data.receiverstab
|
||||
|
||||
'*_import':
|
||||
- zeeklogs
|
||||
|
||||
@@ -99,7 +99,7 @@ addtotab_generate_templates() {
|
||||
|
||||
local addtotab_path=$local_salt_dir/pillar/data
|
||||
|
||||
for i in evaltab managersearchtab managertab nodestab sensorstab standalonetab; do
|
||||
for i in evaltab managersearchtab managertab nodestab sensorstab standalonetab receiverstab; do
|
||||
printf '%s\n'\
|
||||
"$i:"\
|
||||
"" > "$addtotab_path"/$i.sls
|
||||
@@ -2687,7 +2687,7 @@ set_initial_firewall_policy() {
|
||||
;;
|
||||
'RECEIVER')
|
||||
$sshcmd -i /root/.ssh/so.key soremote@"$MSRV" sudo $default_salt_dir/salt/common/tools/sbin/so-firewall --apply includehost receiver "$MAINIP"
|
||||
$sshcmd -i /root/.ssh/so.key soremote@"$MSRV" sudo $default_salt_dir/pillar/data/addtotab.sh receivertab "$MINION_ID" "$MAINIP"
|
||||
$sshcmd -i /root/.ssh/so.key soremote@"$MSRV" sudo $default_salt_dir/pillar/data/addtotab.sh receiverstab "$MINION_ID" "$MAINIP"
|
||||
esac
|
||||
;;
|
||||
'PARSINGNODE')
|
||||
|
||||
Reference in New Issue
Block a user