mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-25 01:13:28 +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/
|
mkdir -p $local_salt_dir/pillar/data/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create the template
|
||||||
if [ ! -f $local_salt_dir/pillar/data/$TYPE.sls ]; then
|
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
|
fi
|
||||||
|
|
||||||
echo "Seeing if this host is already in here. If so delete it"
|
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
|
- user: 940
|
||||||
- group: 939
|
- group: 939
|
||||||
|
|
||||||
|
ruleslink:
|
||||||
|
file.symlink:
|
||||||
|
- name: /opt/so/saltstack/local/salt/suricata/rules
|
||||||
|
- target: /opt/so/rules/nids
|
||||||
|
|
||||||
surirulesync:
|
surirulesync:
|
||||||
file.recurse:
|
file.recurse:
|
||||||
- name: /opt/so/conf/suricata/rules/
|
- name: /opt/so/conf/suricata/rules/
|
||||||
|
|||||||
Reference in New Issue
Block a user