This commit is contained in:
m0duspwnens
2020-05-27 12:30:12 -04:00
parent f35c59e6ce
commit 693000afa8
7 changed files with 10 additions and 6 deletions

View File

@@ -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"

View File

@@ -1 +0,0 @@
evaltab:

View File

@@ -1 +0,0 @@
mastersearchtab:

View File

@@ -1 +0,0 @@
mastertab:

View File

@@ -1 +0,0 @@
nodestab:

View File

@@ -1 +0,0 @@
sensorstab:

View File

@@ -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/