canonical / cloud-init

Official upstream for the cloud-init: cloud instance initialization
https://cloud-init.io/
Other
2.99k stars 882 forks source link

[docs]: Incorrect guide for loading NoCloud config from local filesystem. #5843

Open MarekZydor opened 2 weeks ago

MarekZydor commented 2 weeks ago

Documentation request

As described, configuration can be loaded from the local filesystem using the following format: ds=nocloud;s=file://path/to/directory/

But, the prefix file:// is inappropriate as it corrupts the path. The correct version is: ds=nocloud;s=/path/to/directory/ Additionally, it would be good to mention that the only two configuration files are required:


Reported from: https://cloudinit.readthedocs.io/en/latest/reference/datasources/nocloud.html

holmanb commented 1 week ago

the prefix file:// is inappropriate as it corrupts the path

What do you mean by "corrupts"? Are you saying that this syntax doesn't work?

MarekZydor commented 1 week ago

Yes, this syntax doesn't work. I spent many hours trying to figure out why the config wouldn't load. Removing that prefix fixed it.