Changing name of salt minionby Pigbrain

Stop the Salt-Minion On Salt minion

  1. systemctl stop salt-minion

Delete the current key On Salt minion

  1. cd /etc/salt/pki/minion/
  2. rm -rf minion.pub minion.pem

Change the minions id in /etc/salt/minion_id On Salt minion

  1. vim /etc/salt/minion_id
  2. {new minion id}

Delete the key for our salt minion On Salt Master

  1. salt-key -d

Restart Salt minion service On Salt minion

  1. systemctl stop salt-minion

Accept the new salt minion On Salt master

  1. salt-key --accept={new minion id}

참고

  • https://prolinuxhub.com/changing-name-of-salt-minion-centsos-7
Published 16 February 2020