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

Pass credentials to ansible runner from services #18969

Merged
merged 5 commits into from
Jul 15, 2019

Conversation

carbonin
Copy link
Member

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

@NickLaMuro
Copy link
Member

Copy link
Member

@NickLaMuro NickLaMuro left a 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!

carbonin#5

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).

@carbonin carbonin force-pushed the pass_credentials_from_services branch from 4c1eba5 to 93f9dff Compare July 15, 2019 18:46
@carbonin carbonin changed the title [WIP] Pass credentials to ansible runner from services Pass credentials to ansible runner from services Jul 15, 2019
@carbonin carbonin removed the wip label Jul 15, 2019
@carbonin
Copy link
Member Author

@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 localhost

@carbonin carbonin force-pushed the pass_credentials_from_services branch from 93f9dff to 1566442 Compare July 15, 2019 18:58
Copy link
Member

@NickLaMuro NickLaMuro left a 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.

@carbonin carbonin force-pushed the pass_credentials_from_services branch from 1566442 to f3c7231 Compare July 15, 2019 20:27
@tinaafitz
Copy link
Member

@carbonin The spec changes look good.

@miq-bot
Copy link
Member

miq-bot commented Jul 15, 2019

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
8 files checked, 0 offenses detected
Everything looks fine. 🏆

@miq-bot
Copy link
Member

miq-bot commented Jul 15, 2019

Some comments on commits carbonin/manageiq@a4f2bec~...f3c7231

lib/ansible/runner/credential/machine_credential.rb

  • ⚠️ - 17 - Detected pp. Remove all debugging statements.
  • ⚠️ - 18 - Detected pp. Remove all debugging statements.

spec/lib/ansible/runner/credential/machine_credential_spec.rb

  • ⚠️ - 101 - Detected pp. Remove all debugging statements.
  • ⚠️ - 82 - Detected pp. Remove all debugging statements.
  • ⚠️ - 83 - Detected pp. Remove all debugging statements.

@bdunne bdunne merged commit 55ebb66 into ManageIQ:master Jul 15, 2019
@bdunne bdunne added this to the Sprint 116 Ending Jul 22, 2019 milestone Jul 15, 2019
@bdunne bdunne assigned bdunne and unassigned Fryguy Jul 15, 2019
@carbonin carbonin deleted the pass_credentials_from_services branch August 16, 2019 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants