Jira insigth as inventory for Ansible

Stan van den Broek October 15, 2021

We are planning to automate some stuff with approval steps.

I uploaded an image to make it more clear. Let me explain the steps a bit more in detail with an example of requesting an application to be installed.

plan_idea.PNG

1. Customer sends an email/creates a ticket in Jira to request a the new application.

2. In Jira we have an approval flow. To approve or decline this request.

We are still debating a bit if we want 2 and 3 merged in one form.

3.  Enter the details of this application into insight (cmdb).

4. After the change a program should be triggered that creates the inventory file and a file with some variables. For example the application name that needs to be installed.

5. This would be picked-up by the bitbucket pipeline and triggers an Ansible script.

6. The application is installed by Ansible on the System/Server

 

I hope this explains well enough what we are trying to do. Is this even possible?

Do you need something like Jenkins or is it possible with API's, Webhooks, etc?

 

In short reading insight and supply the info to Ansible.

 

Thanks in advance!

 

Regards,

Stan

1 answer

1 vote
M Amine
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2021

Excellent idea. I have done almost the same thing using ScriptRunner for Jira Cloud. 

I haven't used Jenkins. All within Jira, CMDB, ScriptRunner and client custom scripts/API (bespoke automation) but you can definitely use Bitbucket pipelines with ansible to deploy that. 

Regards

Stan van den Broek October 19, 2021

Sorry for the late response.

Let me check if I understood you correctly.

 

So with ScriptRunner you are able to create a sort of export/middleware to your customer scripts/API.

Or did you create customer scripts/API as middleware?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events