how to remove salt minion and reinstall safely

3,285 views
Skip to first unread message

Justin Jeyaseelan

unread,
Nov 2, 2016, 9:55:30 AM11/2/16
to Salt-users
 Hi All

what is the  procedures  for  removal of salt minion 

how  to  remove salt minion  and reinstall  safely 

C. R. Oldham

unread,
Nov 2, 2016, 11:38:47 AM11/2/16
to salt-...@googlegroups.com
On Nov 2, 2016, at 7:55 AM, Justin Jeyaseelan <just...@gmail.com> wrote:
[...]
how  to  remove salt minion  and reinstall  safely 

Justin,

I'm not sure what you mean by "safely".

If you installed the minion with packages it should be sufficient to uninstall with your distro's package manager.

If you installed from source, you need to go to your distribution's Python site-packages directory and remove salt from there, for example

rm -rf /usr/lib/python2.7/site-packages/salt*
rm /usr/bin/salt*
rm -rf /var/cache/salt
rm -rf /var/run/salt

(on some distros a 'python setup.py install' will put everything in /usr/local.  On some Debian-based distros 'site-packages' is actually 'dist-packages'.  YMMV, check file locations carefully)

There will also be files in /etc/salt that you may or may not wish to keep if you plan on reinstalling the minion.

As far as reinstalling, again, if you used your distro's package manager, just follow standard procedure.

If you installed from source, 'python setup.py install' from the git checkout should do it.

Obviously this is all a problem if you are trying to do it via Salt itself.  You might apply some of the ideas here


to get around the chicken-vs-egg problem.

--cro

Reply all
Reply to author
Forward
0 new messages