/srv/irclogs.ubuntu.com/2019/08/12/#cloud-init.txt

=== cpaelzer__ is now known as cpaelzer
Odd_Blokerharper: blackboxsw: https://code.launchpad.net/~daniel-thewatkins/cloud-init/+git/cloud-init/+merge/371053 <-- should be ready for re-review17:06
Odd_Bloke(Don't land it yet though, I'll want to do a final smoke test on Oracle with all changes included before it lands.)17:07
rharperOdd_Bloke: cool17:39
danielmarquardo/ hello! curious if anyone could provide guidance or a link to documentation on how and where cloud-init executes user data and downloads public keys. we track a single config for our centos AMI, built on-prem. it creates a user, but doesn't explicitly make any mata data calls, yet userdata executes by default. trying to understand how cloud-init knows to do these things by default and how the behavior can be changed20:34
rharperdanielmarquard: hi,  depending on the platform you launch an instance, the Datasource used is different, for example on EC2, cloud-init will certain metadata calls per that class, and if launched in Azure, it will make others.    what exactly do you need to do?21:00
rharperhttps://cloudinit.readthedocs.io/en/latest/topics/modules.html#ssh  https://cloudinit.readthedocs.io/en/latest/topics/modules.html#ssh-import-id are two modules which can import ssh keys21:02
danielmarquardrharper, thanks for the docs. ultimately, we need to ensure that our custom runcmd stanza executes before userdata21:43
rharperyou likely want bootcmd21:44
rharperthat runs early21:44
danielmarquardperfect, that sounds about right. thanks for the guidance :)21:44
rharperdanielmarquard: it's worth looking at /etc/cloud/cloud.cfg to see the config_*_module lists,   that shows the order in which modules are run;  bootcmd runs early, but it also runs before the user is created; so that may present a problem depending on your script.21:46
danielmarquardwe're expanding all partitions in the root volume on a per-instance basis. will keep that module prioritization in mind. thanks!21:48

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