Setup Script - Add id to minion

This commit is contained in:
Mike Reeves
2018-06-06 09:35:54 -04:00
parent 91dc2da5ca
commit cbe6ee394e

View File

@@ -100,8 +100,10 @@ configure_minion() {
echo "role: so-$TYPE" > /etc/salt/grains
if [ $TYPE == 'master' ]; then
echo "master: $HOSTNAME" > /etc/salt/minion
echo "id: $HOSTNAME" >> /etc/salt/minion
else
echo "master: $MSRV" > /etc/salt/minion
echo "id: $HOSTNAME" >> /etc/salt/minion
fi
service salt-minion restart