laxathom.jira
Ansible Role for Jira Software
This role installs and manages the JIRA Server setup on RHEL/CentOS servers.
Requirements
You need to use the jira_java_install
variable to automatically install Java OpenJDK. If you do not use this, make sure to install Java JRE before using this role.
Role Variables
Key variables (check defaults/main.yml for more details):
jira_java_install: Specifies if Java OpenJDK should be installed automatically.
jira_java_version and jira_version: Specify the versions to install. These are connected because Jira versions depend on certain Java versions. Check Jira server’s platform requirements.
jira_java_home: Defines the location of Java. Change this if you are using your own Java setup and not using
jira_java_install
.jira_group, jira_user, jira_homedir, jira_workdir: Basic user and directory settings.
jira_archive: 'atlassian-jira-software-{{ jira_version }}.tar.gz'
jira_url: 'https://downloads.atlassian.com/software/jira/downloads/{{ jira_archive }}'
These define the default download URL. You can change this if you have your own package repository.
jira_hostname, jira_server_port, jira_connector_port, jira_connector_redirect_port, jira_connection_timeout, jira_context_path, jira_proxy_name, jira_scheme: These help configure the pre-set servlet container (Apache Tomcat) for your infrastructure.
jira_db_engine, jira_db_hostname, jira_db_port, jira_db_name, jira_db_user, jira_db_passwd: These define where your database is and its access details.
Dependencies
None.
Example Playbook
Here’s a simple example of a playbook with some variables:
- hosts: servers
vars:
jira_java_install: true
jira_version: "7.12.0"
jira_db_engine: postgresql
jira_db_port: 5432
jira_db_user: jira
jira_db_passwd: "mysuperduperpassword"
roles:
- name: laxathom.jira
tags:
- jira
License
MIT
ansible-galaxy install laxathom.jira