-
Notifications
You must be signed in to change notification settings - Fork 897
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
Adds cloud credentials to AnsibleRunner (for EmbeddedAnsible) #18991
Adds cloud credentials to AnsibleRunner (for EmbeddedAnsible) #18991
Conversation
ab02e89
to
61cde3e
Compare
4ecdab9
to
63aae5b
Compare
Okay, updated most of the original concerns, but this one: Is going to take a bit more of a larger rebase to do, so I will be working on that for a bit. |
Which direction are you going to go with that @NickLaMuro ? |
@carbonin Oh, sorry, I wasn't clear. I am just going to go with your suggestion of |
63aae5b
to
cd94fcc
Compare
@carbonin Okay, that wasn't as hard as I thought it was going to be. Added a new commit at the beginning, and everything after that follows that pattern. |
end | ||
|
||
def ovirt_ini_file | ||
File.join(base_dir, "ovirt.ini") |
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.
Quick note here: I changed this from rhv_credentials
(what it was in the previous version) since this is what the file is normally called:
Looks good to me. Is this still WIP @NickLaMuro ? |
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.
LGTM, let's just get the TODO comments out of there as we've made decisions
@Fryguy I feel like this hasn't been done at all. There have been comments say "we don't currently support in our dialogs" (and I agree), but there haven't seen an out right "we are never going to support this" from either of you. That said, I am not against merging as is at all, but the reason I put these TODO's in there in the first places was they markers of "things Should I change these to "Note: ..." comments instead? Maybe add a bit more context to each as to why we aren't supporting them? |
I think he's fine with the references to the awx codebase, but TODOs for things that we never supported regardless of backend implementation don't belong here, they belong in an RFE in a bug tracker. |
cd94fcc
to
5d9652d
Compare
Changes `Ansible::Runner::Credential#write_password_file` to `Ansible::Runner::Credential#write_config_file` since this allows it to be more generic and have this method support multiple file types. For example, machine credential not only writes a `env/password` file, but also a `env/ssh_key` file. But in some of the cloud credentials, there are cloud specific files that are generated, so this allows the same interface to be reused, and then the logic to be implemented in private subclass specific methods. Machine credential has been updated to show how that implementation can be used.
5d9652d
to
bf698f8
Compare
Some comments on commits NickLaMuro/manageiq@80f39cf~...bf698f8 lib/ansible/runner/credential/machine_credential.rb
|
Checked commits NickLaMuro/manageiq@80f39cf~...bf698f8 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Yeah I was more commenting about the literal TODOs that I interpreted as net-new features where the decision was to not implement them until later. The comments with source reference are fine as is |
Adds the following credential types:
AmazonCredential
AzureCredential
GoogleCredential
OpenstackCredential
RhvCredential
VmwareCredential
Documented most of places where this is pulled from in
awx
in the code/specs.TODO:VmwareCredential
Steps for Testing/QA
TBD
That said, this definitely needed. I am just conirming stuff exists with these specs, and haven't tested that
ansible-runner
actually works with this changes.