mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-10 03:02:58 +01:00
Setup Script - Fix minion logic and add salt restarts
This commit is contained in:
@@ -67,12 +67,18 @@ configure_minion() {
|
||||
|
||||
touch /etc/salt/grains
|
||||
echo "role: so-$TYPE" > /etc/salt/grains
|
||||
echo "master: $MASTER" > /etc/salt/minion
|
||||
service salt-minion start
|
||||
if [ $TYPE == 'master' ]; then
|
||||
echo "master: $HOSTNAME" > /etc/salt/minion
|
||||
else
|
||||
echo "master: $MASTER" > /etc/salt/minion
|
||||
fi
|
||||
|
||||
service salt-minion restart
|
||||
}
|
||||
|
||||
copy_master_config() {
|
||||
cp files/master /etc/salt/master
|
||||
service salt-master restart
|
||||
}
|
||||
|
||||
copy_minion_pillar() {
|
||||
|
||||
Reference in New Issue
Block a user