-
Notifications
You must be signed in to change notification settings - Fork 130
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
Move REX ssh key management into separate class #727
Conversation
8a3330c
to
d152241
Compare
d152241
to
c9a8ce9
Compare
c9a8ce9
to
24204f8
Compare
318a21a
to
59ffd5c
Compare
59ffd5c
to
fcfae64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks ok to me. You can add a spec test:
require 'spec_helper'
describe 'foreman_proxy::plugin::remote_execution::ssh::keys' do
it { is_expected.to compile.with_all_deps }
end
Since it doesn't use facts in anyway, I'd say that's good enough for testing.
It does make me wonder: should the name be tied to REX? Just thinking about the future case where Ansible might also need SSH keys but REX is configured to use MQTT.
fcfae64
to
96ae112
Compare
It's concerning to me too. After staring at it for a bit I don't see a clean way to fix this without breaking some interfaces. |
Ansible is REX in our ecosystem. And by that I mean, REX is the umbrella and it has sub-functionality underneath that falls into transports and providers. SSH, http and mqtt being transports, and Scripts and Ansible being providers (or languages) that can be used. It all rolls up to REX though. |
This commit cleared things up for me theforeman/smart_proxy_ansible@3f408b6 Therefore, I think this PR is in a mergeable state unless @ekohl has other feedback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ekohl could you take a final look as well
No description provided.