-
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
Normalize extra_vars support for Ansible Tower playbooks. #18057
Conversation
@lfu @mkanoor Should these changes be linked to https://bugzilla.redhat.com/show_bug.cgi?id=1611946 Can we solve the |
@lfu - Regarding @gmcculloug's comment it seems there would need to be the addition of the |
app/models/service_ansible_tower.rb
Outdated
@@ -1,4 +1,5 @@ | |||
class ServiceAnsibleTower < Service | |||
include ApiAnsibleMixin |
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.
@lfu should this file name indicate that its ExtraVars maybe ApiExtraVars. Since most of the fields in there are going in as ExtraVars for connecting to our REST API.
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.
I'm not good at naming. But I think ApiAnsibleMixin
makes more sense than ApiExtraVarsMixin
in terms of audience. People may have heard of ansible
but not extra_vars
.
@gmcculloug Ideas?
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.
Not sure if I'm helping here, but I came up with: AnsibleCallbackExtraVarsMixin
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.
Renamed the module to AnsibleExtraVarsMixin
.
4358c88
to
37fdd6c
Compare
@gmcculloug @syncrou Regarding |
37fdd6c
to
c4f6764
Compare
c4f6764
to
993ba89
Compare
Tested with Ansible Tower Service, Ansible Playbook Service and automate playbook method. |
@lfu If you have examples in your playbook repo can you post the link here.
|
The playbook I used for testing is this one. |
Refactor extra_vars support for ServiceAnsiblePlaybook. ManageIQ#18005
993ba89
to
3b6fa05
Compare
Checked commits lfu/manageiq@b9ccc09~...3b6fa05 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 app/models/service_ansible_playbook.rb
app/models/service_ansible_tower.rb
|
Followup of ManageIQ/manageiq#18057
Includes ManageIQ/manageiq-automation_engine#244
Fixes #18005.
@miq-bot assign @gmcculloug
@miq-bot add_label enhancement, services
cc @mkanoor