mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
remove addtotab templates and move surirulelink - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/749
This commit is contained in:
@@ -19,8 +19,12 @@ if [ ! -d $local_salt_dir/pillar/data/ ]; then
|
||||
mkdir -p $local_salt_dir/pillar/data/
|
||||
fi
|
||||
|
||||
# Create the template
|
||||
if [ ! -f $local_salt_dir/pillar/data/$TYPE.sls ]; then
|
||||
cp $default_salt_dir/pillar/data/$TYPE.sls $local_salt_dir/pillar/data/$TYPE.sls
|
||||
printf '%s\n'\
|
||||
"$TYPE:"\
|
||||
"" > "$local_salt_dir/pillar/data"/$TYPE.sls
|
||||
echo "Added $TYPE Template"
|
||||
fi
|
||||
|
||||
echo "Seeing if this host is already in here. If so delete it"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
evaltab:
|
||||
@@ -1 +0,0 @@
|
||||
mastersearchtab:
|
||||
@@ -1 +0,0 @@
|
||||
mastertab:
|
||||
@@ -1 +0,0 @@
|
||||
nodestab:
|
||||
@@ -1 +0,0 @@
|
||||
sensorstab:
|
||||
@@ -55,6 +55,11 @@ surilogdir:
|
||||
- user: 940
|
||||
- group: 939
|
||||
|
||||
ruleslink:
|
||||
file.symlink:
|
||||
- name: /opt/so/saltstack/local/salt/suricata/rules
|
||||
- target: /opt/so/rules/nids
|
||||
|
||||
surirulesync:
|
||||
file.recurse:
|
||||
- name: /opt/so/conf/suricata/rules/
|
||||
|
||||
Reference in New Issue
Block a user