Hi, thanks for the good bug report.
I believe that you should be able to override the datasource provided config
in user-data. Try providing user-data as:
#cloud-config
ssh_pwauth: False
Please let me know if that works for you or not. I do realize that its unfortunate to have to do that. Generally speaking the precedence ordre for config in cloud-init is:
/etc/cloud/cloud.cfg
/etc/cloud/cloud.cfg.d/*
data-source provided config (there isnt a lot of these)
user-provided config (user-data)
Hi, thanks for the good bug report.
I believe that you should be able to override the datasource provided config
in user-data. Try providing user-data as:
#cloud-config
ssh_pwauth: False
Please let me know if that works for you or not. I do realize that its unfortunate to have to do that. Generally speaking the precedence ordre for config in cloud-init is: cloud/cloud. cfg cloud/cloud. cfg.d/*
/etc/
/etc/
data-source provided config (there isnt a lot of these)
user-provided config (user-data)