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

Initial commit for ansible playbook methods and service model. #13717

Conversation

tinaafitz
Copy link
Member

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

@chessbyte chessbyte added the wip label Jan 31, 2017
@@ -0,0 +1,28 @@
class ServiceAnsiblePlaybook < Service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ServiceAnsiblePlaybook < ServiceGeneric

@@ -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)
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

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 exposes here

@tinaafitz tinaafitz force-pushed the ansible_playbook_statemachine_related_changes branch 2 times, most recently from 9ff4c77 to 99a07e5 Compare February 1, 2017 21:47
@@ -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
Copy link
Contributor

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

@tinaafitz tinaafitz force-pushed the ansible_playbook_statemachine_related_changes branch from 99a07e5 to 1ccd6e7 Compare February 1, 2017 23:20
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,
Copy link
Contributor

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

@tinaafitz tinaafitz force-pushed the ansible_playbook_statemachine_related_changes branch from 1ccd6e7 to 699537b Compare February 2, 2017 20:24
@tinaafitz tinaafitz changed the title [WIP] Initial commit for ansible playbook methods and service model. Initial commit for ansible playbook methods and service model. Feb 2, 2017
@bzwei
Copy link
Contributor

bzwei commented Feb 2, 2017

@gmcculloug please review and merge

@gmcculloug
Copy link
Member

@tinaafitz I see you removed '[WIP]' from the title, but not the label. Also, can you address the rubocop issues before merging.

@tinaafitz tinaafitz force-pushed the ansible_playbook_statemachine_related_changes branch from 699537b to 869f21d Compare February 2, 2017 22:37
@miq-bot
Copy link
Member

miq-bot commented Feb 2, 2017

Checked commit tinaafitz@869f21d with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 files checked, 0 offenses detected
Everything looks good. ⭐

@gmcculloug gmcculloug merged commit 1bdfbc5 into ManageIQ:master Feb 2, 2017
@gmcculloug gmcculloug added this to the Sprint 54 Ending Feb 13, 2017 milestone Feb 2, 2017
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.

5 participants