|
Actually, it looks like it would be quite easy to add this to the built-in fact.
Proposal: add type and comment attributes to each of the entries in the ssh fact. The type will be the real key type, and the comment will be the comment, if it exists, or null if it doesn't.
|
Existing, ellipsized
|
|
Show all
|
❯ facter ssh
|
{
|
ecdsa => {
|
fingerprints => { ... },
|
key => "..."
|
},
|
ed25519 => {
|
fingerprints => { ... },
|
key => "..."
|
},
|
rsa => {
|
fingerprints => { ... },
|
key => "..."
|
}
|
}
|
|
Proposed, ellipsized
|
❯ facter ssh
|
{
|
ecdsa => {
|
fingerprints => { ... },
|
key => "...",
|
type => "ecdsa-sha2-nistp256",
|
comment => nil
|
},
|
ed25519 => {
|
fingerprints => { ... },
|
key => "...",
|
type => "ssh-ed25519",
|
comment => "root@debian"
|
},
|
rsa => {
|
fingerprints => { ... },
|
key => "...",
|
type => "ssh-rsa",
|
comment => "root@debian"
|
}
|
}
|
And, yeah, I'm volunteering. Might take me a while to get back around to this, though.
Ping Michael Smith and Josh Cooper since you seem to be the Puppet employees who have most recently touched facts. Sorry if your process already catches updates to tickets like this; I know ours does not (shame shame shame).
|