mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-31 05:13:18 +01:00
Utility Module - Rework cluster settings
This commit is contained in:
@@ -6,10 +6,10 @@ TYPE=$1
|
||||
NAME=$2
|
||||
IPADDRESS=$3
|
||||
|
||||
if grep -q $3 "/opt/so/saltstack/pillar/data/$1.sls"; then
|
||||
if grep -q $IPADDRESS "/opt/so/saltstack/pillar/data/$TYPE.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
|
||||
echo " $NAME:" >> /opt/so/saltstack/pillar/data/$NAME.sls
|
||||
echo " ip: $IPADDRESS" >> /opt/so/saltstack/pillar/data/$NAME.sls
|
||||
|
||||
fi
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
nodestab:
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user