chef-cookbooks / ssh_known_hosts

Development repository for Chef Cookbook ssh_known_hosts
https://supermarket.chef.io/cookbooks/ssh_known_hosts
Apache License 2.0
72 stars 77 forks source link

Sort order changes between runs #86

Closed eheydrick closed 6 years ago

eheydrick commented 6 years ago

Seeing an issue with ordering of ssh_known_hosts items changing between runs.

Cookbook version

5.2.1

Chef-client version

14.0.190. Also happens on Chef 12 and 13.

Platform Details

Linux

Scenario:

Order of entries written to /etc/ssh/ssh_known_hosts changes between runs.

Steps to Reproduce:

Have a ssh_known_hosts_entry 'some.site' resource.

Expected Result:

Order should not change between runs.

Actual Result:

Run chef-client several times and see that the same key gets rewritten to the file but in a different order sometimes.

I was running 2.0.0 before and this didn't happen.

eheydrick commented 6 years ago

This is no longer occurring since 6.1.0. It now only writes out an rsa key and avoids sort order issues with multiple key types.