Closed lostiniceland closed 3 years ago
As far as I'm aware cloud-init is only support on Openstack's flavor of Kubic/MicroOS
Examples can be found here using ignition
You are right: using an OpenStack build works. I just changed the downloaded image url and cloud-init is triggered and I can login with the configured root user. Maybe I will try ignition as well, though I hate JSON configs :-)
Anyways, sorry for opening an issue which was on my side.
System Information
Linux distribution
openSUSE 15.3
Terraform version
Terraform v0.15.5
Provider and libvirt versions
0.6.3
for OpenSuse 15.2 (even though I am on 15.3)Description of Issue/Question
Cloud-Init is ignored when using MicroOS as the the guest-os. The machine is provisioned but no configuration from cloud-init is applied.
According to the MicroOS/Kubic docs for cloud-init, a mounted filesystem should be picked up
I checked the libvirt-provider source, and as far as I can tell it looks correct.
However, using the libvirt-provider with an Ubuntu image works as expected. For instance when following this article. So there must be a difference in how cloud-init is recognized. It seems to me that the cloud-init files must reside in the root of the filesystem, which I could not verify. Maybe one of the prerequisites mentioned above are not met (vfat or iso9660, not partition-table, etc).
Setup
Cloud-Init
Steps to Reproduce Issue
terraform apply
with above configuration.root
andpassword
(which is enabled via cloud-init)Additional information:
It seems that cloud-init configuration is different based on the distribution. For Micro-OS the docs are here.