Bug 1450485

Summary: Automate method to order an Ansible Playbook Service from a button
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: mkanoor
Status: CLOSED ERRATA QA Contact: Dmitry Misharov <dmisharo>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, dajohnso, dmisharo, gmccullo, jhardy, mkanoor, obarenbo, simaishi, tfitzger
Target Milestone: GA   
Target Release: 5.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: automate:ansible:playbook:service:button
Fixed In Version: 5.8.0.15 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1449361 Environment:
Last Closed: 2017-05-31 15:12:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1449361    
Bug Blocks:    

Comment 2 CFME Bot 2017-05-12 18:18:55 UTC
New commit detected on ManageIQ/manageiq-content/fine:
https://github.com/ManageIQ/manageiq-content/commit/bace533c620591b3206fe11f8a6be5bdbd7df080

commit bace533c620591b3206fe11f8a6be5bdbd7df080
Author:     Greg McCullough <gmccullo>
AuthorDate: Fri May 12 13:10:10 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Fri May 12 14:13:15 2017 -0400

    Merge pull request #113 from mkanoor/bz_1449361
    
    Order Ansible Playbook from a Custom Button using a Method
    (cherry picked from commit 3220db060e4f35e7908dbc66a1352a38dd0ffb4c)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1450485

 .../__methods__/order_ansible_playbook.rb          |  84 ++++++++++++++
 .../__methods__/order_ansible_playbook.yaml        |  12 ++
 .../Request.class/order_ansible_playbook.yaml      |  12 ++
 .../__methods__/order_ansible_playbook_spec.rb     | 128 +++++++++++++++++++++
 4 files changed, 236 insertions(+)
 create mode 100644 content/automate/ManageIQ/System/Request.class/__methods__/order_ansible_playbook.rb
 create mode 100644 content/automate/ManageIQ/System/Request.class/__methods__/order_ansible_playbook.yaml
 create mode 100644 content/automate/ManageIQ/System/Request.class/order_ansible_playbook.yaml
 create mode 100644 spec/content/automate/ManageIQ/System/Request.class/__methods__/order_ansible_playbook_spec.rb

Comment 3 Dmitry Misharov 2017-05-19 08:14:19 UTC
In the Object Details Section the System/Process/Request field should be set to Order_Ansible_Playbook. A service can be ordered via button. Verified in 5.8.0.15.20170517161141_119e6fd. But the credential is always picked always as "CFME Default Credential" or None.

Comment 4 Dmitry Misharov 2017-05-19 08:14:34 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1452557

Comment 6 errata-xmlrpc 2017-05-31 15:12:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:1367