As far as I understand it, cloud-init handles early initialization of a cloud/VM instance.
Ive been using it to help build KVM VMs and it works really well.
One aspect of cloud-init I don't understand is what happens once its done the initial creation of the instance.
- Does it automatically disable itself so it never runs again?
Can it execute again under certain circumstances (e.g. on a change to
/etc/machine-id)? I'm pretty sure I forced it to re-run at some point by runningsudo rm -rf /var/lib/cloud/*Is it designed so that I should be uninstalling
cloud-initonce my instance has been built and its gone into production, or doescloud-initstay installed (doing nothing) even after its been instantiated?