dbungert | 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:01 | |
MTecknology | It's nice to see that my feelings are in good company. | 00:20 |
MTecknology | 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 |
MTecknology | for a user | 00:22 |
MTecknology | err .. identity* section | 00: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 | ||
SuperLag | If you delete SSH host keys from a machine in preparation for making a template, at what point do they get regenerated? | 22:10 |
sdeziel | SuperLag: on the next boot | 22:12 |
SuperLag | sdeziel: thank you. I thought that was the case, but wasn't sure. | 22:14 |
sdeziel | SuperLag: I think I spoke too soon, they are not regenerated in my test | 22:14 |
MTecknology | 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:15 |
sdeziel | SuperLag: `rm /etc/ssh/ssh_host_*; cloud-init clean; reboot` seems to have them created fresh on boot | 22:16 |
patdk-lap | yep, have to tell cloud-init to run again to do it's things, ssh key, resize fs, ... | 22:19 |
MTecknology | 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 |
dbungert | 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:19 |
MTecknology | 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:22 |
MTecknology | I 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-lap | ya, you have to install everything snapd installed first | 23:01 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!