~harlowja/cloud-init/notify-on-reload

output public ssh host keys to console on boot (LP: #893400)

Currently cloud-init writes something like this to console output:
  ec2: #############################################################
  ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
  ec2: 2048 78:ae:f3:91:04:6f:8d:ee:ef:e1:2d:72:83:6a:d0:82  root@h (RSA)
  ec2: 1024 d3:b6:32:64:22:d4:43:05:f9:25:b4:f3:65:4e:e2:51  root@h (DSA)
  ec2: -----END SSH HOST KEY FINGERPRINTS-----
  ec2: #############################################################

the key fingerprints are useful for humans to read, but not so useful
for machines, as you cannot populate a KnownHostsFile (~/.ssh/known_hosts)
from the data there.

This change adds output like:
  -----BEGIN SSH HOST KEY KEYS-----
  ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdH......STI= root@h
  ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYRIQe6m......tWF3 root@h
  -----END SSH HOST KEY KEYS-----

Those lines can easily be grabbed and appended to a known_hosts file.
Filename Latest Rev Last Changed Committer Comment Size
..
cloudinit 144 14 years ago Scott Moser globally remove ec2init and rename to cloudinit Diff
config 271 13 years ago Scott Moser remove 'biultin' config, separate cloud.cfg This Diff
debian.trunk 353 13 years ago Scott Moser add a debian.trunk dir and tools/bddeb to easily b Diff
doc 133 14 years ago Scott Moser add doc/userdata.txt, move examples to doc/. Diff
systemd 465 12 years ago Scott Moser Add sample/example systemd config files This impo Diff
templates 14 15 years ago Bazaar Package Importer * ec2-set-apt-sources.py: - Use a template to ge Diff
tools 82 14 years ago Scott Moser add tools/ directory and 'write-mime-multipart' w Diff
upstart 80 14 years ago Scott Moser put upstart files in upstart/, minor other changes Diff
ChangeLog 493 12 years ago Scott Moser output public ssh host keys to console on boot (LP 8.2 KB Diff Download File
File cloud-init-cfg.py 492 12 years ago Scott Moser fix missing import for use of close_stdin revisio 3.1 KB Diff Download File
File cloud-init-query.py 282 13 years ago Scott Moser add 'cloud-init-query' tool, to query fields from 1.5 KB Diff Download File
File cloud-init-run-module.py 492 12 years ago Scott Moser fix missing import for use of close_stdin revisio 2.3 KB Diff Download File
File cloud-init.py 489.1.1 12 years ago Scott Moser make stdin read from /dev/null for all cloud-init 5.8 KB Diff Download File
File install.sh 103 14 years ago Scott Moser clean out 'build' directory in install.sh 1.2 KB Diff Download File
LICENSE 450 12 years ago Scott Moser add LICENSE file 34.3 KB Diff Download File
File setup.py 483 12 years ago Scott Moser setup.py: move version to 0.6.3 1.9 KB Diff Download File
TODO 364 13 years ago Scott Moser change from yaml+'#include' to yaml + config.d for 497 bytes Diff Download File