From f3ec5df4479c3b14cf24c6d10a4361497f1404ee Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 7 Dec 2021 11:13:51 -0500 Subject: [PATCH] add receiver node --- pillar/top.sls | 2 +- setup/so-functions | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pillar/top.sls b/pillar/top.sls index a81fdc862..b3cc8dc8f 100644 --- a/pillar/top.sls +++ b/pillar/top.sls @@ -110,7 +110,7 @@ base: - elasticsearch.auth - global - minions.{{ grains.id }} - - data.receivertab + - data.receiverstab '*_import': - zeeklogs diff --git a/setup/so-functions b/setup/so-functions index 8a0e59842..527d914e5 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -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')