/srv/irclogs.ubuntu.com/2024/06/21/#cloud-init.txt

maurosrhey, what is the correct procedure to externally override an cloud-init option from cloud.cfg? Specifically I want to set preserve_sources_list = true for any image in my system. Is it possible to set it trhough vendor or user data in a metadata server?16:01
blackboxswmaurosr: typically general overrides for a given cloud platform applicable to all images would be something provided as vendor-data for that particular cloud so the metadata server (IMDS) would provide a vendor-data key that surfaces "defaults" for user-data. Those vendor defaults could be overridden at instance launch time if some admin provided #cloud-config user-data which provided the same "preserve_sources_list" key.19:15
blackboxswmaurosr: not all clouds support vendor-data though. Which cloud are we talking about?19:16
blackboxsws/clouds/clouds or platforms/19:16
maurosrblackboxsw: I'm using openstack, which from what I've read does support vendor_data.. The thing is I was assuming that metadata servers would only provide data instead of the option itself, but if I got what you meant correctly it is possible to set such configurations as well.19:20
blackboxswcommunity notice: our 24.2 release delay has been due to some issues with issues with our integration test runners. We've made progress to bring those integration jobs back online and are auditing test runs against on a number of clouds. This will give us a level of certainty before we cut our upstream 24.2 release. Expect us to attempt 24.2 release next week after sorting any integration test failures raised.19:20
blackboxswcommunity notice: Any active PRs and issues we hope to resolve prior to 24.2 final cut are here: https://github.com/canonical/cloud-init/milestone/119:21
blackboxswmaurosr: agreed on openstack having vendordata support via nova I think. If your vendordata for openstack is typically structured as a JSON dict w/ a "cloud-init" top-level key https://cloudinit.readthedocs.io/en/latest/reference/datasources/openstack.html#vendor-data19:26
blackboxswhonestly though I haven't looked at that element of config through openstack in quite a long time, so mileage may vary19:26
maurosrblackboxsw: looks like it is what I'm looking for. Thanks a lot for your help! 19:27
blackboxswmaurosr: as you are testing, if you are able to provide vendor-data to an instance from your OpenStack IMDS, try running `sudo cloud-init schema --system` and it should tell you if vendor data was seen, and whether it is valid format19:28
blackboxswno prob19:28
blackboxswmaurosr: and additionally if you feel like documenting what you did(no matter how simple) to setup vendor-data for your use-case, we might be able to capture a tiny tutorial or howto and showcase it in cloud-init for others in the future19:29
blackboxswI'd ❤️ to see tutorials or reference doc material for ancillary interaction with many cloud platforms to help others get acquainted w/ various platforms.19:30
maurosrblackboxsw: sure, once I test it I can definitely document the steps. Where such tutorials live? Should I open a PR on cloud-init repository? 19:32
blackboxswmaurosr: we've been creating tutorials in our repo at https://github.com/canonical/cloud-init/tree/main/doc/rtd/tutorial a PR would be great to start. It can be minor and we can have our docs team help us shepherd that content into the right locations, wording etc.19:34
blackboxswfalcojr: any objections/thoughs about  trying to collect some open-stack specific content?    maurosr we might also look to alternatively provide some information in https://github.com/canonical/cloud-init/tree/main/doc/rtd/datasources/openstack.rst if it's relatively short and succinct.19:35
blackboxsws/open-stack/openstack/19:36
maurosryeah let's do this. I'll test it, provide some guide on what I did and results, open the PR so I can share with you and follow your feedback and guidance on it19:42
blackboxswsweet! thanks maurosr 19:44
falcojrI agree it'd be good to have under the openstack datasource info, but there are already openstack docs 19:58
falcojrhttps://docs.openstack.org/nova/rocky/user/vendordata.html 19:58
falcojrWe support both static and dynamic json 19:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!