Skip to content

Commit

Permalink
Export ECDSA hostkeys
Browse files Browse the repository at this point in the history
Since these are only available with a combination of both a recent
openssh and a recent facter, I've made it conditional on the presence of
the sshecdsakey fact.
  • Loading branch information
kepstin committed Jan 17, 2013
1 parent c56be03 commit ef3ec06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/hostkeys.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@
type => rsa,
key => $::sshrsakey,
}
if $::sshecdsakey {
@@sshkey { "${::fqdn}_ecdsa":
host_aliases => $host_aliases,
type => 'ecdsa-sha2-nistp256',
key => $::sshecdsakey,
}
}

0 comments on commit ef3ec06

Please sign in to comment.