If you working on cleaning up the retired or decommissioned server or if you are deploying new VM with same name then you might want to cleanup the salt-key for those servers. so for that you need to login to the salt-master and then switch to saltadmin and then perform the following steps.
1. Switch to saltadmin using the following command
# sudo su - saltadmin
2. To delete the salt-key for the respective host use the following command
# salt-key -d <FQDN hostname?
# salt-key -d acg-vm1.acg.com
3. To check the salt version use the following command
# salt --versions-report
Salt Version: Salt: 2017.7.2 Dependency Versions: cffi: 1.11.2 cherrypy: Not Installed dateutil: Not Installed docker-py: Not Installed gitdb: 2.0.3 gitpython: 2.1.7 ioflo: Not Installed Jinja2: 2.10 libgit2: Not Installed libnacl: Not Installed M2Crypto: Not Installed Mako: Not Installed msgpack-pure: Not Installed msgpack-python: 0.4.8 mysql-python: Not Installed pycparser: 2.18 pycrypto: 2.6.1 pycryptodome: Not Installed pygit2: Not Installed Python: 2.7.14 (default, Dec 4 2017, 20:10:15) python-gnupg: Not Installed PyYAML: 3.12 PyZMQ: 16.0.3 RAET: Not Installed smmap: 2.0.3 timelib: Not Installed Tornado: 4.5.2 ZMQ: 4.1.6 System Versions: dist: centos 7.8.2003 Core locale: UTF-8 machine: x86_64 release: 3.10.0-1127.8.2.el7.x86_64 system: Linux version: CentOS Linux 7.8.2003 Core
# salt-key -L
October 06, 2021
Tags :
Salt command
Subscribe by Email
Follow Updates Articles from This Blog via Email
No Comments