-
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
Initial commit for ansible playbook methods and service model. #13717
Initial commit for ansible playbook methods and service model. #13717
Conversation
@@ -0,0 +1,28 @@ | |||
class ServiceAnsiblePlaybook < Service |
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.
ServiceAnsiblePlaybook < ServiceGeneric
app/models/service_generic.rb
Outdated
@@ -1,31 +1,31 @@ | |||
class ServiceGeneric < Service | |||
# A chance for taking options from automate script to override options from a service dialog | |||
def preprovision(_options = {}) | |||
def preprocess(service_context) |
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.
def preprocess(action, options = {})
@@ -0,0 +1,10 @@ | |||
module MiqAeMethodService | |||
class MiqAeServiceServiceAnsiblePlaybook < MiqAeServiceService |
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.
expose these methods in MiqAeServiceServiceGeneric
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.
We can delete all the expose
s here
9ff4c77
to
99a07e5
Compare
app/models/service_generic.rb
Outdated
@@ -1,31 +1,31 @@ | |||
class ServiceGeneric < Service | |||
# A chance for taking options from automate script to override options from a service dialog | |||
def preprovision(_options = {}) | |||
def preprocess(action, options = {}) | |||
end | |||
|
|||
# Interact with external provider to act on this service item |
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.
Need to revise all comments
99a07e5
to
1ccd6e7
Compare
app/models/service_generic.rb
Outdated
end | ||
|
||
# Interact with external provider to act on this service item | ||
# The result is called stack, normally a vmdb object. It can map to an object in the provider, |
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.
Remove this line "# The result is called stack ..."
1ccd6e7
to
699537b
Compare
@gmcculloug please review and merge |
@tinaafitz I see you removed '[WIP]' from the title, but not the label. Also, can you address the rubocop issues before merging. |
Related Automate model changes. ManageIQ/manageiq-content#24
699537b
to
869f21d
Compare
Checked commit tinaafitz@869f21d with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Added service model for ansible playbook and expose new methods.
Added initial methods for ansible playbook.
Modified generic service for method name changes
Related Automate model changes.
ManageIQ/manageiq-content#24