We want to use cloud-init to resize the rootfs in our pipeline. The resize itself works fine, but it seems like the default cloud-init config (/etc/cloud.cfg) changes also other settings like SSH for example.
We really dont want that, but there is seemingly no information on how to disable this behaviour?! We tried to remove everything that seems not relevant for us from /etc/cloud.cfg but no change...
Our config file now looks like this:
resize_rootfs_tmp: /dev
cloud_init_modules:
- disk_setup
- growpart
- resizefs
cloud_config_modules:
cloud_final_modules:
- scripts-per-once
- scripts-per-boot
- scripts-per-instance
Even if we just install cloud-init without enabling the service, we get SSH errors in our pipeline. Any idea on how to disable every cloud-init config except for the things we want (growpart)?!