Skip to content

Comments

Support for ssh_known_hosts in modules and states#1315

Merged
thatch45 merged 4 commits intosaltstack:developfrom
imankulov:ssh_known_hosts
May 22, 2012
Merged

Support for ssh_known_hosts in modules and states#1315
thatch45 merged 4 commits intosaltstack:developfrom
imankulov:ssh_known_hosts

Conversation

@imankulov
Copy link

Please consider including into the upstream the code to support managing known_hosts files.

It should be mentioned that although these changes are covered somehow by integration tests, the code in fact was never deployed into production (I plan to do it later this week.) Please don't hesitate to comment if you decide to play with it and watch something behaves unexpectedly odd or looks strange. Thank you.

Roman Imankulov added 4 commits May 20, 2012 23:09
- function _validate_keys returns public key fingerprint as described in
  RFC 4716
- one more test to validate how "ssh.auth_keys" function works
Module "ssh" is now capable of keeping track of records in ssh
known_hosts file, as well as asking remote hosts for their public keys.
@thatch45
Copy link
Contributor

Wow, this is awesome! Give me a little time to look over the code, but so far this looks good to me

@thatch45
Copy link
Contributor

The only thing that is missing is the test interface in the states so that test=True works:
https://github.com/saltstack/salt/blob/develop/salt/states/ssh_auth.py#L121

thatch45 added a commit that referenced this pull request May 22, 2012
Support for ssh_known_hosts in modules and states
@thatch45 thatch45 merged commit 99ea439 into saltstack:develop May 22, 2012
@imankulov
Copy link
Author

Oh, you have already merged. I've just added missing code for the test interface. Please consider including imankulov/salt@f20cb3b too. Thank you

@thatch45
Copy link
Contributor

Heh, I had started to write this myself, I will merge, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants