Is there a way to insert or update a Jira licence with Ansible?

Jerker Montelius March 10, 2016

Can I in some way insert a JIRA licence with Ansible when i install or upgrade Jira?

1 answer

0 votes
TtheB
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 10, 2016

Take a look at https://answers.atlassian.com/questions/158813

You could parse dbconfig.xml for the connection url, user/password and update the license key in the database. I am sure this can be done with a sql-file and task in Ansible.

 

Jerker Montelius March 14, 2016

Sorry. My problem is JIRA not confluence an even so, automated install, which is my goal, is not helped by this.

TtheB
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2016

sorry, I was in Confluence-Mode - updated my answer above

Jerker Montelius March 14, 2016

Well no.

No, I found that there esist a table "productlicense" where the licence ends up.

I have no idea how to use it.

id , licence

?

 

TtheB
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2016

Here is your license:

select propertyvalue from propertytext where ID in (select id from propertyentry where property_key = 'License20');

as stated in https://answers.atlassian.com/questions/158813

 

 

 

thebro August 29, 2020

Actually, for those of us who landed on this page but have JIRA 8.0+, the licence is indeed in the "productlicense" table, as stated here (changed since 7.0.5 and above):

https://confluence.atlassian.com/jirakb/manage-jira-server-license-using-database-queries-441746313.html

But I also have no clue yet what ID from the "productlicense" table is referencing, as it does not look like it references "propertyentry" table. The above link is not helpful about the ID column at the moment.

I had three rows and this is the ID to Application mapping that worked for me on my server:

10300 -> JIRA Core
10301 -> JIRA Service Desk
10302 -> JIRA Software


Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events