/srv/irclogs.ubuntu.com/2024/12/14/#cloud-init.txt

holmanbsounds great04:50
holmanbSee you around @dilfridge 04:50
dilfridge 21:09
dilfridgeok I'm stumped21:09
dilfridgehttps://cloudinit.readthedocs.io/en/24.1/reference/examples.html21:09
dilfridgehow do I tell it to allow passwordless (console) login for an account?21:09
dilfridgepasswd: ''21:09
dilfridge^ doesnt work21:09
dilfridgeand about a million other details I have tried... :)21:09
minimaldilfridge: what's the exactly user-data you're providing?21:16
minimalalso are you using 24.1 or a different version? (the behaviour changed in 24.3 (#5355 which I authored)21:18
dilfridgeI tried about a million different variants that didnt work21:25
dilfridgethe behaviour is a bit erratic right now, and I just dont understand why things work sometimes and sometimes not21:26
dilfridgeusing 24.221:26
dilfridgewhich is the latest version in gentoo so far21:26
dilfridgeone moment21:30
dilfridgeminimal: https://bpa.st/BMJQ  <= the user-data21:41
dilfridgethe hashed password is just "gentoo"21:41
dilfridgeI want to change this such that the user gentoo can log in without password21:41
* dilfridge is adding 24.4 to gentoo now21:43
dilfridgewait21:56
dilfridgeI think the error might be between the pc and the keyboard here21:56
dilfridgeerr keyboard and chair, sorry21:56
dilfridgeso, please ignore all my rambling :| turns out the image I built did not include the backported patch for systemd support, which means I probably got all sorts of random stuff22:00
dilfridge... 22:01
* dilfridge slinks off into the dark22:01
minimaldilfridge: if you look at that cloud-init MR I mentioned you'll see it changed/fixed c-i behaviour regarding locked passwords22:10
minimalbasically in versions prior to 24.3 "lock_passwd: true" (for not specified at all) would ensure that passwords are locked, however "locked_passwd: false" would NEVER unlock passwords (it uncorrectly assumed that "useradd" did not lock passwords by default)22:12
dilfridge:(   thanks22:19
dilfridgeI pushed 24.4 into gentoo, in an hour or so I'll have it22:20
dilfridgehuh23:09
dilfridgeis it deliberate that 24.4 has no cloud-init.service ?23:09
dilfridgeand how is cloud-init supposed to be started by systemd now?  (reading #5489)23:13
dilfridge"systemctl enable cloud-init.service" does nto work anymore, obviously23:15
dilfridge... and upon update, the service does not start anymore because of a broken link in /etc/systemd23:34
dilfridgeI guess the replacement is cloud-init-main ?23:35
dilfridgeno, that's not really doing anything visible (no logs generated, "not started")23:45

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