I want to “reset” a server which I have manually added to a juju model so that I can “re-run” the “juju add-machine ssh:user@192.168.2.2” on the same machine which I added to my model previously.
What is the process of purging juju machine agent to be able to add it again?
Juju places a script in /sbin called remove-juju-services. You can run it to remove all traces of Juju.
As part of my duty of care, this is the warning contained therein:
# WARNING
# This script will clean a host previously used to run a Juju controller/machine.
# Running this on a live installation will render Juju inoperable.