You don't add public keys to known_hosts. Host keys are added there
(the keys of hosts the user logs in from).
I don't see anything in this class that would change known_hosts.
ssh_authorized_keys manages a user's authorized_keys file only, that
is: Public keys which are allowed to log in _as that user_.
However, you might want to try this one to manage the _systems_
global known_hosts file (see
here):
# Collect SSH keys from all Unix hosts and store them in
ssh_known_hosts
# so that all managed hosts will automatically know each other.
class sshkeys {
# Declare the exported resource
@@sshkey { $::fqdn:
type => rsa,
key => $sshrsakey
}
# Collect all keys:
Sshkey <<| |>>
}
HTH...
Dirk