mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-25 05:57:49 +02:00
Getting Close
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# This script adds sensors/nodes/etc to the nodes tab
|
||||
|
||||
TYPE=$1
|
||||
NAME=$2
|
||||
IPADDRESS=$3
|
||||
|
||||
if grep -q $3 "/opt/so/saltstack/pillar/data/$1.sls"; then
|
||||
echo "Storage Node Already in There"
|
||||
else
|
||||
echo " $2:" >> /opt/so/saltstack/pillar/data/$1.sls
|
||||
echo " - $3" >> /opt/so/saltstack/pillar/data/$1.sls
|
||||
|
||||
fi
|
||||
@@ -0,0 +1,3 @@
|
||||
nodestab:
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ base:
|
||||
- masters.{{ grains.host }}
|
||||
- static
|
||||
- firewall.*
|
||||
- data
|
||||
|
||||
'G@role:so-node':
|
||||
- nodes.schedule
|
||||
|
||||
Reference in New Issue
Block a user