/srv/irclogs.ubuntu.com/2022/01/06/#cloud-init.txt

holmanb@blackboxsw: I applied your diff to PR #1130, but didn't bother with authorship since that would be lost in the squash merge. How do you feel about adding a "Co-authored-by" line to the commit message?03:29
blackboxswholmanb: no worries was just poking at that now. no need for authoship attribution for this. Generally when there were more significant assistance, we can add the Co-authored-by: <blah> footer.03:30
blackboxswBut it was minor nits. so all good. I'm hoping to merge shortly and call it a night03:31
blackboxswI took a dinner break for a while and wanted to wrap up on your branch.03:31
holmanbThanks! That sounds fine to me.03:32
holmanbI'm around for a little bit if you have any questions, otherwise have a good night :)03:33
blackboxswholmanb: if still around, I think we could add this: to handle non-annotated config errors:  https://paste.ubuntu.com/p/yCyM2x8MJP/04:13
holmanblooking04:13
blackboxswwhich gives us: output like this:04:13
blackboxswroot@dev-b:~# cloud-init devel schema  --system04:13
blackboxswError:04:13
blackboxswCloud-config is not a YAML dict.04:13
blackboxswroot@dev-b:~# cloud-init query userdata04:13
blackboxsw#cloud-config04:13
blackboxswfor empty config with --annotate is not provided04:14
blackboxswhttp://paste.ubuntu.com/p/XK7qymWjSx/ when calling `cloud-init devel schema  --system --annotate`04:14
blackboxswotherwise, without the patch output of `cloud-nit devel schema --system` will be http://paste.ubuntu.com/p/VpY4Db5nwY/04:16
holmanbThat makes sense.04:25
holmanbIt looks like --docs all --annotate is accepted by the parser too, for what it's worth, but I can't think of a reason anyone would try that so I assume that's just an invalid combo.04:26
blackboxswyeah that's an invalid combo04:27
blackboxswshould raise an error on that04:27
blackboxswcan do that in a separate PR if you want04:27
holmanbI need to hop off for the night, but I'm fine with adding that to this PR04:29
holmanbI can add that and the the suggestion you pastebinned (verb?) first thing in the morning04:30
blackboxswcollio holmanb agreed take care. we'll sort it tomorrow04:33
holmanbSeeya o/04:36
beantaxiHere's a simple issue I seem tp be having a hard time figuring out ... how do I create a cloud-config that installs the latest node on ubuntu? Node's debian/ubuntu instructions don't seem to be based on 'add this PPA'. Thanks!16:46
holmanbbeantaxi  - does the latest version packaged by ubuntu meet your needs?17:41
holmanb their "pipe curl to sh" setup script just adds a repo (source and gpg files), which are things that the apt-configure module is capable of17:45
holmanbbeantaxi: ahh, yes -> take a look at the manual install section: https://github.com/nodesource/distributions/blob/master/README.md#manual-installation18:01
holmanbbeantaxi: apt-configure module in cloud-init can add a repo, for an example see the "sources" key under https://cloudinit.readthedocs.io/en/latest/topics/examples.html#additional-apt-configuration-and-repositories18:02
holmanbbeantaxi: their key ID (9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280) is posted in the manual-installation section on the readme. That key is also hosted by keyserver.ubuntu.com, so you should be able to add something like this (untested) to the apt section of your cloud-config to install from their repo:18:12
holmanb```18:12
holmanb  sources:18:12
holmanb    nodesource.list:18:12
holmanb      source: deb [signed-by=$KEY_FILE] https://deb.nodesource.com/node_8.x $RELEASE main18:12
holmanb      keyid: 9FD3B784BC1C6FC31A8A0A1C1655A0AB6857628018:12
holmanb```18:12
beantaxiholmanb: Thanks! I'll give that a shot20:04
esvhey folks, what would be the difference between using #cloud-config and #cloud-init in the customer data file. ?21:17
esvnever mind, thanks for not insulting :)21:24
blackboxswesv: it's an easy mistake to make, all questions valid!  I'm culpable of that mistake a couple times. We're hoping that `cloud-init devel schema --system --annotate` adds value here. As it should show something like the following:22:19
blackboxswError:22:19
blackboxswCloud config schema errors: format-l1.c1: File 1.yaml needs to begin with "#cloud-config"22:19
blackboxswor rather22:19
blackboxsw schema -c 1.yaml --annotate22:20
blackboxsw#cloud-init# E122:20
blackboxsw# Errors: -------------22:20
blackboxsw# E1: File 1.yaml needs to begin with "#cloud-config"22:20
blackboxswholmanb: merged schema annotate and cloud-init boot process warning about empty schema thx https://github.com/canonical/cloud-init/pull/113022:33
ubottuPull 1130 in canonical/cloud-init "cloud-config annotation throws exception, fix it" [Merged]22:33
holmanbblackboxsw: Thanks!22:34

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