/srv/irclogs.ubuntu.com/2024/03/14/#ubuntu-server.txt

dbungertMTecknology: 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-167818223300:01
-ubottu:#ubuntu-server- Issue 4302 in canonical/cloud-init "Cloud-init cannot find DataSourcenocloud module" [Closed]00:01
MTecknologyIt's nice to see that my feelings are in good company.00:20
MTecknologydbungert: 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
MTecknologyfor a user00:22
MTecknologyerr .. identity* section00:34
=== 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
SuperLagIf you delete SSH host keys from a machine in preparation for making a template, at what point do they get regenerated?22:10
sdezielSuperLag: on the next boot22:12
SuperLagsdeziel: thank you. I thought that was the case, but wasn't sure.22:14
sdezielSuperLag: I think I spoke too soon, they are not regenerated in my test22:14
MTecknologydbungert: 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:15
sdezielSuperLag: `rm /etc/ssh/ssh_host_*; cloud-init clean; reboot` seems to have them created fresh on boot22:16
patdk-lapyep, have to tell cloud-init to run again to do it's things, ssh key, resize fs, ...22:19
MTecknologySuperLag: 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
dbungertMTecknology: 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:19
MTecknologydbungert: 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-3122:22
MTecknologyI think I fixed the snapd removal as well, it just requires manual ordering, with lxd first.22:24
MTecknology(and snapd last, before removing the package)22:24
patdk-lapya, you have to install everything snapd installed first23:01

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