-
Notifications
You must be signed in to change notification settings - Fork 898
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
Pass credentials to ansible runner from services #18969
Pass credentials to ansible runner from services #18969
Conversation
Just adding this here as an easy way to compare this to #18968: |
4f59a2d
to
917fa51
Compare
917fa51
to
1c3b82b
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 good, but obviously the specs are failing. But hey, I fixed them for you!
Sorta...
Unsure about the first commit, so you might want @bzwei 's opinion on that change if the behavior is correct with your changes or the specs caught a regression being added (I am having a hard time determining that myself).
The rest of the changes are pretty simple, and just need to be implemented here (either with how I did it or otherwise).
4c1eba5
to
93f9dff
Compare
@tinaafitz the last commit here is the spec change we were talking about. cc @lfu this should allow you to run playbooks against hosts other than |
93f9dff
to
1566442
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.
Looks like this covers all the spec failures I saw. Was testing this on Friday and it seemed to be working as expected.
Good to go from my end.
1566442
to
f3c7231
Compare
@carbonin The spec changes look good. |
Checked commits carbonin/manageiq@a4f2bec~...f3c7231 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Some comments on commits carbonin/manageiq@a4f2bec~...f3c7231 lib/ansible/runner/credential/machine_credential.rb
spec/lib/ansible/runner/credential/machine_credential_spec.rb
|
After this patch I was able to execute a playbook targeting two appliances using a machine credential which used the default username and password for ssh.
Builds on #18968
cc @NickLaMuro @Fryguy
@tinaafitz @bzwei @gmcculloug please review