Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automating Jira installation through puppet

Sreenadh Menon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 9, 2019

Hi,

 

I am trying to automate the installation of Jira using puppet. I am writing a custom module. The plan is to reinstall Jira unattened using, response.varfile. Currently the database won't be touched. Just make sure that if any file is missing, reinstall Jira. My understanding was that once you reinstall Jira and restore dbconfig.xml, jira will be restored, But that is not the case. It is still asking for the database setup through the following page, http://localhost:8080/secure/SetupMode!default.jspa

Is it possible to skip the setup wizard after the database restore and directly logon to the Jira instance and see the projects earlier created?

Please let me know if there is a solution for this. 

Thanks

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 10, 2019

Hi,

I see that you are looking to automate a restoration process of Jira.  It is true that the database settings Jira has are kept within the $JIRAHOME/dbconfig.xml.  However a fresh installation of Jira won't automatically know where the $JIRAHOME/ directory is. 

Take a look at the Jira Server Important directories and files for some more information on this topic.  From that page:

<jira-application-dir>/atlassian-jira/WEB-INF/classes/jira-application.properties

This file tells Jira where to find the Jira application home directory.
(warning) Be aware that your Jira home directory defined in this file can be overridden. See Setting your Jira application home directory for more information.

When Jira starts up, if the application.properties defines the $JIRAHOME directory, and that directory has a dbconfig.xml file with a Jira database, then Jira can startup directly with that data.  But if the database is empty, dbconfig.xml is missing, or $JIRAHOME is not defined, then yes Jira will start the setup wizard instead.

I hope this helps.

Andy

Suggest an answer

Log in or Sign up to answer