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 76 forks source link

Hostnames missing in generated file #91

Open askz opened 5 years ago

askz commented 5 years ago

Cookbook version

7.0.0

Chef-client version

Chef Infra Client: 15.2.20

Platform Details

Description: Debian GNU/Linux 9.9 (stretch) Release: 9.9 Codename: stretch

Scenario:

I'm using the default recipe to generate ssh_known_hosts file for one specific node

Steps to Reproduce:

I'm just invoking the default recipe on the concerned node

Expected Result:

node-name-1 ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx node-name-2 ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx

Actual Result:

localhost ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx localhost ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx localhost ssh-ed25519 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx localhost ssh-rsa XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx localhost ssh-rsa XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx localhost ssh-rsa XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXxxx

The hostnames aren't included in the file so the ssh client fails to recognize hosts.

welcomebot commented 5 years ago

Hey There It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you. Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.