/srv/irclogs.ubuntu.com/2019/07/29/#cloud-init.txt

=== cpaelzer__ is now known as cpaelzer
chillysurferthe merging doc (https://cloudinit.readthedocs.io/en/latest/topics/merging.html) seems to explicitly talk about merging userdata. is vendordata subject to these same principles? (default merging, ability to specify merge-types in the vendordata cloud-config, etc.)?16:56
chillysurfermy testing is hinting at a "no". if userdata has a runcmd(s) and vendordata has runcmd(s), then the vendordata runcmd(s) is/are not run16:56
chillysurferwondering if i could specify `merge_how` in vendordata cloud-config  to change this behavior though16:57
chillysurferactually i think the vendordata section answers my question: "if both vendor and user have provided ‘runcmd’ then the default merge handler will cause the user’s runcmd to override the one provided by the vendor. To append to ‘runcmd’, the user could better provide multipart input with a cloud-config-jsonp part"16:59
chillysurferso the end-user (supplying userdata) would have to be _very_ explicit to allow vendordata to not get overwritten16:59
Odd_Blokechillysurfer: Yes, the intent is that if a user provides a key then it completely overrides the vendor's key.17:34
Odd_Bloke(Unless they opt-out of that behaviour, as you noted.)17:35
chillysurferOdd_Bloke: ok cool thanks for the confirmation. and besides the user specifying a cloud-config-jsonp part, there is nothing vendordata could do otherwise, right? can't specify a different merge-type in vendordata?17:58
Odd_Blokechillysurfer: As far as I know, the power lies entirely with the user.18:03
Odd_Bloke(By design. :)18:03
chillysurferyep that's what the docs seem to indicate as well :)18:03
rharperchillysurfer: I've not explored it yet; but I wanted to see if we could have a place to set the default merge-how values; rather than a per user-data file;   it's awkward to have to have a merge-how in each input file you might use18:08
rharperthat said, I do think the need to merge vendor-data with user-data usually indicates that what's happening in vendor-data probably should be baked into the image in some other way; for example a stand-alone vendor package integrated into the image;  or event a dynamic vendor config module;18:10
chillysurferrharper: yep makes total sense19:18
chillysurferi have a question and some findings that are way too long for irc. what's the cloud-init mailing list that i could use?19:19
Odd_Blokechillysurfer: It's the mailing list attached to this Launchpad team: https://launchpad.net/~cloud-init19:24
chillysurferOdd_Bloke: perfect thanks!19:40
AnhVoMSFTrharper : Sorry it took a while but I pushed an update to https://code.launchpad.net/~vtqanh/cloud-init/+git/cloud-init/+merge/36978520:01
rharperAnhVoMSFT: no worries; thanks20:01

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