salt更换新key

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
posted @ 2018-08-05 01:25  开始认识  阅读(553)  评论(0编辑  收藏  举报