uninstall, remove or disable cloud-init on centos

Marian picture Marian · Jun 14, 2016 · Viewed 12.6k times · Source

I installed cloud-init on centos 6.4 using command yum install cloud-init. But now I want to completely get rid of it, or if it is impossible to at least disable. I looked through internet but failed to find any solution.

Could you suggest how the installed cloud-init could be eliminated from centos?

Thank you

Answer

Pierz picture Pierz · Jun 18, 2018

The way to disable it is:

sudo touch /etc/cloud/cloud-init.disabled

And/or set cloud-init=disabled on the kernel command line if it's enabled at boot time. See the cloud-init docs for details on the boot stages.