[00:01] MTecknology: this user is doing hostname stuff on the command line and letting a template fill in the value, maybe it helps. https://github.com/canonical/cloud-init/issues/4302#issuecomment-1678182233 [00:01] -ubottu:#ubuntu-server- Issue 4302 in canonical/cloud-init "Cloud-init cannot find DataSourcenocloud module" [Closed] [00:20] It's nice to see that my feelings are in good company. [00:22] dbungert: It looks like this is concerned with getting the hostname passed into cloud-init from automation, but my desire is to prompt the user for the hostname. It looks like the only way to do this is by marking the "user-data" section as interactive, then having that get written to the cloud-init config file, so then I can manually set that inside of the host at the end of installation and ignore anything they might have provided [00:22] for a user [00:34] err .. identity* section === chris14_ is now known as chris14 === cpete__ is now known as cpete === guesswhat65 is now known as guesswhat6 === nightstrike_ is now known as nightstrike === bahamat_ is now known as bahamat === Menzador_ is now known as Menzador === LewisCawte is now known as Lcawte === isnessness is now known as ugjka === rfm_ is now known as rfm [22:10] If you delete SSH host keys from a machine in preparation for making a template, at what point do they get regenerated? [22:12] SuperLag: on the next boot [22:14] sdeziel: thank you. I thought that was the case, but wasn't sure. [22:14] SuperLag: I think I spoke too soon, they are not regenerated in my test [22:15] dbungert: I'm still working through this, but all the pieces are finally coming together. Thanks for all the help!!! I absolutely was not going to get this figured out without it! :) [22:16] SuperLag: `rm /etc/ssh/ssh_host_*; cloud-init clean; reboot` seems to have them created fresh on boot [22:19] yep, have to tell cloud-init to run again to do it's things, ssh key, resize fs, ... [22:19] SuperLag: The last time I was messing around with "golden images," we just deleted the files and let the service itself be responsible for generating something fresh/unique. [22:19] MTecknology: glad it helps. What sort of problem were you running into with /target/etc/apt/sources.list that you had to restore the original file? [22:22] dbungert: The first issue I ran into was basically an intentional "break things" in my bootstrap script because I never populated it with a proper sources.list. The second issue was the sources.list being relocated to sources.list.curtin.old and replaced with a reference to the cdrom for the late-commands. I fixed that with this -> https://dpaste.com/3Z9PL6KQF#line-31 [22:24] I think I fixed the snapd removal as well, it just requires manual ordering, with lxd first. [22:24] (and snapd last, before removing the package) [23:01] ya, you have to install everything snapd installed first