How automate the configuration of Jira Edited

Hi,

 

I was wondering that if it is possible to automate the configuration of Jira (server version) after the installation.

 

The automation should cover the database, admin creation, and also extra plugin installation.

 

I have used the docker to create an image with some of my preference. Based on this image, I would like to build another image.

 

Many thanks.

2 answers

0 vote
Suhas Patil Community Champion Jan 03, 2018

You can automate entire jira installation using reponse.var file. refer this https://confluence.atlassian.com/adminjiraserver071/unattended-installation-855475683.html

For later part, you can use some shell scripting to add/modify dbconfig.xml by providing appropriate parameters. If you already have backup on the database, it will definitely has admin user. If its clean database, in that you may add a admin user by SQL command. (I am not sure about this part if this is advisable, but surely you should be able to add user).

Same way you can modify other files as well like serene.sh, server.xml etc...

Everything you can accommodate in a shell script including restart in the end to take effect of all changes.

For later part, you can use some shell scripting to add/modify dbconfig.xml by providing appropriate parameters

I have a dbconfig.xml and copy this one to the correct location in "/var/atlassian/application-data/jira/". With this, I assume that the Jira will recognise the database configuration, but it still ask me the DB configuration when accessing the web portal.

 

In addition, does some one know how to deal with the license for server version?

 

Many thanks.

Did you try ./stop-jira.sh and ./start-jira.sh commands after copying dbconfig.xml file?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

622 views 6 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you