Goal: Preserve SSH host keys when re-building a Linux host. Handy when you’re in a dev environment.
I’ve had both Spacewalk and RHSat5 running for years here, and one of the very useful snippets has been the keep_ssh_host_keys snippet. Unfortunately, taken as-is from Spacewalk, the installs would hang at the final close of the pre-install section of the kickstart.
I should point out that this also covers some heartburn cases with remote execution from the Foreman master to clients, especially those over SSH connections, after re-implementation. This will eliminate the need to remove the old SSH keys from foreman and foreman_proxy .ssh directories.
That’s the snippet, and it’s a 1 line change to make it work gracefully in Foreman/Katello. I trigger it here with a master snippet called by “Kickstart default custom pre”. (detecting a pattern here? )
I’ll look up the license and/or contact the original developer to see about submitting to this project.