[18:58] Hello, I have troubles with chpasswd. It works with the field "list" but nothing happens with a field "users" [19:00] 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] Sulky_: autoinstall isn't a cloud-init yaml key, sounds like you're using the Ubuntu subiquity autoinstaller. [19:02] Share your config? [19:04] holmanb, you are correct : I'm using it to automate an Ubuntu installation [19:05] Yes, I will send to you a light version of the file I'm using [19:08] 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] 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] holmanb, here it is : https://pastebin.com/ZqGfGUSp [19:19] Sulky_: which cloud-init version are you using? [19:20] also can you show the "users" version of the user-data that isn't working? [19:21] $ cloud-init --version /usr/bin/cloud-init 22.2-0ubuntu~22.04.3 [19:23] 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] Sulky_: cloud-init 22.2 does not support "users" for chpasswd, only "expire" and "list" [19:24] minimal, the "users" field is not tested in this file (it's commented) : but doesn't work in either cases [19:24] 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] 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] Also I think the pipe character is used for multiline strings in yaml, not lists [19:27] 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] Ah, nvm multiline strings are supported [19:30] Sulky_: i'm look at this: https://cloudinit.readthedocs.io/en/22.2/topics/modules.html#set-passwords [19:30] that is the 22.2 docs, no mention of "users" [19:31] minimal, you are correct [19:31] minimal, it makes sense that it doesn't work then [19:31] so change "list: |\n root:test" to "list:\n - user:test" [19:33] as holmanb indicated the "multiline string" format of "list:" is deprecated as indicated in the docs [19:33] minimal, Ok great, I will :) [19:33] 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] 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] 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] Ok, if I understand correctly, although autoinstall and cloud-init input files look close they are not identical [19:41] Thank you a lot for your help :) [19:42] I will try to figure this out on the dedicated irc channel [19:45] holmanb: things busy at Canonical currently? [19:46] minimal: A few unplanned side quests have come up recently [19:47] ah ok, it seemed quiet on here the past week and was hoping for some input to my recent PR [19:48] 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] I'll try to prioritize getting eyes on it [19:53] thanks, just hoping to get it sorted in time for 23.1 [19:54] working on ena-related stuff currently [19:54] oops, eni [19:57] +1 sounds good