Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all known keys to the known hosts file #73

Closed
wants to merge 4 commits into from

Conversation

axos88
Copy link
Contributor

@axos88 axos88 commented Jan 11, 2017

Description

Add all known keys (not only one) to the known hosts file (rsa, dsa, ecdsa, etc).

@axos88 axos88 force-pushed the master branch 3 times, most recently from 167c228 to 7311fd0 Compare January 11, 2017 10:44
@@ -0,0 +1,2 @@
default['ssh_known_hosts']['cacher']['data_bag'] = 'server_data'
default['ssh_known_hosts']['cacher']['data_bag_item'] = 'known_hosts'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

splitting up attributes files is pointless, they're all parsed no matter what recipe is in the run list.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well from chef's pow, yes, it's pointless, but from the developer's point of view clear separation of concerns be a good thing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer one file that was organized well, rather than a dozen files with an attribute or two each so I only have one file to open up in an editor.

And splitting things up into different files doesn't address separation of concerns. It just means you have to load more files into the editor and context switch between them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never experienced the problem of switching between files, as I have a file list to the left with sublime.
I will put it back to the default.rb if you have such strong feelings about this.

metadata.rb Outdated
@@ -4,7 +4,7 @@
license 'Apache 2.0'
description 'Dyanmically generates /etc/ssh/ssh_known_hosts based on search indexes'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '4.1.0'
version '4.2.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also please don't bump the version in the metadata, automation typically handles this and it causes merge conflicts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this was not supposed to be part of the PR. We had released a new version internally since the PR was created.

@axos88
Copy link
Contributor Author

axos88 commented Mar 1, 2017

Removed the version bump, it was an oversight when submitting the PR.

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.

None yet

2 participants