/srv/irclogs.ubuntu.com/2024/01/31/#cloud-init.txt

SuperLagIs there a way to do conditionals with user data? like do X if RPM-based distro and do Y if DEB-based-distro? or is it best to just make two different configurations?02:18
minimalSuperLag: the majority of cloud-init user-data options are distro-agnostic, i.e. if you specify the timezone to set then the cloud-init timezone module will run the appropriate command for the distro cloud-init is running on03:15
minimalsame for locales, adding users, etc03:15
minimalif you're referring to runcmd and bootcmd entries that is a different matter as there YOU are specifying the exact commands to be run03:16
anankeargh. latest kali AMI breaks our packer build process. I don't suppose anybody has seen this kind of error when running 'cloud-init status --wait'? https://dpaste.org/GC3KV15:28
anankewonder if it's related to systemd update that's triggered via cloud-init15:30
anankelooks like I may have to add a dummy wait before running cloud-init status, that systemd update breaks waiting cloud-init status15:51
anankeugly, but works: /usr/bin/cloud-init status --wait || (echo failed, retrying in 10 seconds; sleep 10; /usr/bin/cloud-init status --wait)16:15
blackboxswananke: I think we added a commit in tip of main to avoid that specific issue with dbus not being ready in early boot. https://github.com/canonical/cloud-init/commit/d29b744e742d12e41e9490fb05e74537b4b768d717:22
-ubottu:#cloud-init- Commit d29b744 in canonical/cloud-init "fix: Handle systemctl commands when dbus not ready (#4681)"17:22
blackboxswbut that'll only be in daily builds or our next 24.1 release17:23
anankeblackboxsw: ahh, great. thank you17:51
=== meena7 is now known as meena
holmanbananke: iirc that was hard for us to reproduce when testing, so please do report it if you see it again on main20:40
anankeI was able to reproduce it 100% of the time, using latest kali AMI + cloud-init config with package update/upgrade enabled + cloud-init status --wait as the very first thing running on boot20:49
anankemy gitlab jobs save the last 100 lines of these files, if that's of any use: /var/log/cloud-init.log /var/log/cloud-init-output.log /var/log/syslog21:00
=== arif-ali_ is now known as arif-ali

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