saltstack-formulas / openssh-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
90 stars 297 forks source link

Wishlist: ability to include short hostname entries in known_hosts #110

Closed doubletwist13 closed 7 years ago

doubletwist13 commented 7 years ago

openssh.known_hosts works great, except it only includes the fqdn in the entries. In our environment we use 'search' in resolv.conf and thus often use short names. This does not match the known hosts entry which uses the fqdn, and thus either asks the user to verify the host key or if strict checking is on it blocks the connection altogether.

It would be nice if there was an option to have the formula generate host-key entries using the short hostname in addition to the fqdn entries it already adds when using openssh.known_hosts.

alxwr commented 7 years ago

@doubletwist13 Your wish may be granted (if PR #110) gets merged.

To be honest: I wanted that feature for myself for some time now. :-)

aboe76 commented 7 years ago

@doubletwist13 can this be closed?

doubletwist13 commented 7 years ago

Yes. Thank you!