-
Committer:
Andrew Wilkins
-
Date:
2013-11-13 07:20:54 UTC
-
Revision ID:
andrew.wilkins@canonical.com-20131113072054-q9k6deppm369ftvf
Remove mongodb and data-dir on machine-agent termination
This CL is about cleaning up manual environment state
servers. When a manual environment state server is torn
down, it should remove its juju-db service as well as
its own (i.e. the machine-agent upstart service), and
finally remove the data-dir.
This is implemented by adding an UNINSTALL_SCRIPT entry
into the machine-agent's agent.conf. The machine agent
will extract this when it terminates, copy it out to a
file, and execute it. environs/cloudinit takes care of
generating the script based on what gets installed on
the machine.