SaltStack - master and minion relationships
TAGS:How to work out some errors between salt master and minion
Will be continued
different hash types problem
If you have problems like ‘AsyncAuth’ object has no attribute ‘_finger_fail’ in your journalctl on minion node when do:
- Stop master and minion(s)
- Clear out keys on master: salt-key -D
- Clear out master key on minion(s): /etc/salt/pki/minion/minion_master.pub
- Make sure hash_type is the same on master and minion(s): hash_type: sha256
- Run salt-key -F master on master, copy master.pub vlaue to minion master_finger setting
- Start master and minions
- Accept minion key on master (salt-key -a hostname)
Targeting hosts
By grains:
sudo salt -G 'os:Ubuntu' test.ping
By pillars:
salt '*' saltutil.sync_all
salt -I 'somekey:specialvalue' test.ping
By IP:
salt IP test.ping
By Nodegroup:
salt -N group1 test.ping
Debug start of salt
sudo salt-master -l debug
sudo salt-minion -l debug
Configure modules on minion for beacon functionality
sudo apt install python-pip
sudo pip install pyinotify
sudo apt-get install python-psutil
Written on November 17, 2017