1 停止salt-minion服务
service salt-minion stop
2 删除salt-minion公钥文件
rm /etc/salt/pki/minion/minion.pub
rm /etc/salt/pki/minion/minion.pem
3 改新minion_id
echo NewId > /etc/salt/minion_id
4 master上删除旧的key
salt-key -d oldId
5 minion端重新启动salt-minion
service salt-minion start
6 master端重新接受新的key
salt-key -a NewId