[18:58] <Sulky_> Hello, I have troubles with chpasswd. It works with the field "list" but nothing happens with a field "users"
[19:00] <Sulky_> Also "chpasswd" appears to only work when it's a child of "autoinstall > user-data", but is ignored when placed on the top level : just below #cloud-config
[19:01] <holmanb> Sulky_: autoinstall isn't a cloud-init yaml key, sounds like you're using the Ubuntu subiquity autoinstaller.
[19:02] <holmanb> Share your config?
[19:04] <Sulky_> holmanb, you are correct : I'm using it to automate an Ubuntu installation
[19:05] <Sulky_> Yes, I will send to you a light version of the file I'm using
[19:08] <holmanb> For that, this irc channel probably isn't the best support channel, see https://cloudinit.readthedocs.io/en/latest/reference/faq.html#autoinstall-preruncmd-postruncmd
[19:11] <holmanb> That said it's possible that this is a cloud-init bug, so I'll still take a peak if you share it
[19:16] <Sulky_> holmanb, here it is : https://pastebin.com/ZqGfGUSp
[19:19] <minimal> Sulky_: which cloud-init version are you using?
[19:20] <minimal> also can you show the "users" version of the user-data that isn't working?
[19:21] <Sulky_> $ cloud-init --version     /usr/bin/cloud-init 22.2-0ubuntu~22.04.3
[19:23] <Sulky_> minimal, for the file I have sent : the top level "chpasswd" is simply ignored. The commented "chpasswd" bloc into "autoinstall > user-data" works when uncommented
[19:24] <minimal> Sulky_: cloud-init 22.2 does not support "users" for chpasswd, only "expire" and "list"
[19:24] <Sulky_> minimal, the "users" field is not tested in this file (it's commented) : but doesn't work in either cases
[19:24] <minimal> on the cloud-init docs' page, at the bottom left be sure to click on "latest" and select 22.2 to see the docs for that version
[19:25] <minimal> oh, I didn't look at the "autoinstall" block. Anyway, as said "users" is not support for chpasswd for cloud-init 22.2
[19:26] <holmanb> Also I think the pipe character is used for multiline strings in yaml, not lists 
[19:27] <Sulky_> minimal, Oh really ? I thought it was supported since I was getting a DEPRECATED warning for "list" field in favor of "users" in the logs
[19:28] <holmanb> Ah, nvm multiline strings are supported
[19:30] <minimal> Sulky_: i'm look at this: https://cloudinit.readthedocs.io/en/22.2/topics/modules.html#set-passwords
[19:30] <minimal> that is the 22.2 docs, no mention of "users"
[19:31] <Sulky_> minimal, you are correct
[19:31] <Sulky_> minimal, it makes sense that it doesn't work then
[19:31] <minimal> so change "list: |\n  root:test" to "list:\n  - user:test"
[19:33] <minimal> as holmanb indicated the "multiline string" format of "list:" is deprecated as indicated in the docs
[19:33] <Sulky_> minimal, Ok great, I will :)
[19:33] <Sulky_> Do you know why this bloc (with "list") will not work at a top level field (juste below #cloud-config) but will work into "autoinstall > user-data" ?
[19:37] <holmanb> Sulky_: I'm a bit fuzzy on the details of that, but iirc the top level gets passed to cloud-init at a different stage from subiquity's autoinstall subkey userdata.
[19:38] <minimal> don't know but as holmanb indicated you are not using "native" cloud-init, you're using Ubuntu Subquity (which is where the "autoinstall" reference is coming from)
[19:41] <Sulky_> Ok, if I understand correctly, although autoinstall and cloud-init input files look close they are not identical
[19:41] <Sulky_> Thank you a lot for your help :)
[19:42] <Sulky_> I will try to figure this out on the dedicated irc channel
[19:45] <minimal> holmanb: things busy at Canonical currently?
[19:46] <holmanb> minimal: A few unplanned side quests have come up recently
[19:47] <minimal> ah ok, it seemed quiet on here the past week and was hoping for some input to my recent PR
[19:48] <holmanb> Ah, right that one. I think James mentioned trying to take a look, but then things came up and he's been out the last couple of days.
[19:50] <holmanb> I'll try to prioritize getting eyes on it
[19:53] <minimal> thanks, just hoping to get it sorted in time for 23.1
[19:54] <minimal> working on ena-related stuff currently
[19:54] <minimal> oops, eni
[19:57] <holmanb> +1 sounds good