tripleo-image-elements/elements/restore-ssh-host-keys
Julia Kreger af03b8e5b6 Correct typo in the restore-ssh-host-keys element
Removed excess quote on the mv command line that breaks the
element from working, as the expansion by the shell is required
to copy the files.

Change-Id: Icf3ff28b6bb28803e29d8eebc83a2d2f429f972d
2015-01-26 19:13:11 -05:00
..
os-refresh-config/pre-configure.d Correct typo in the restore-ssh-host-keys element 2015-01-26 19:13:11 -05:00
README.md Add an element to restore ssh keys from /mnt/state 2015-01-15 09:27:46 -05:00
element-deps Stop, disable, exit os-collect-config early 2015-01-15 09:27:46 -05:00

README.md

Because of poor interactions with cloud-init and nova rebuilds, we have a timing problem when trying to store SSH host keys on the state drive. Basically cloud-init checks for them before it mounts the state drive.

So we're going to back them up to the state drive when we intend to do a rebuild, and then restore them if they are present. Note that there is not currently a standard place to do such a backup in TripleO. The operator would need to do this before any rebuilds are issued, or expect that machines will get new SSH host keys after rebuild. This element will restore host keys from /mnt/state/_ssh_host_keys, if they are found.

To allow external services to determine when the ssh host key has been restored we are appending a string to the sshd version information when a host key is restored.