Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/buluma/ansible-role-jira
Ansible Role for Atlassian Jira Installation.
https://github.com/buluma/ansible-role-jira
ansible ansible-playbook jira molecule tox
Last synced: about 1 month ago
JSON representation
Ansible Role for Atlassian Jira Installation.
- Host: GitHub
- URL: https://github.com/buluma/ansible-role-jira
- Owner: buluma
- License: apache-2.0
- Created: 2022-04-17T00:43:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T00:44:53.000Z (5 months ago)
- Last Synced: 2024-07-19T09:01:51.909Z (5 months ago)
- Topics: ansible, ansible-playbook, jira, molecule, tox
- Language: Jinja
- Homepage: https://galaxy.ansible.com/buluma/jira
- Size: 153 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Ansible role [jira](https://galaxy.ansible.com/ui/standalone/roles/buluma/jira/documentation)
Ansible Role for Atlassian Jira Installation
|GitHub|Version|Issues|Pull Requests|Downloads|
|------|-------|------|-------------|---------|
|[![github](https://github.com/buluma/ansible-role-jira/actions/workflows/molecule.yml/badge.svg)](https://github.com/buluma/ansible-role-jira/actions/workflows/molecule.yml)|[![Version](https://img.shields.io/github/release/buluma/ansible-role-jira.svg)](https://github.com/buluma/ansible-role-jira/releases/)|[![Issues](https://img.shields.io/github/issues/buluma/ansible-role-jira.svg)](https://github.com/buluma/ansible-role-jira/issues/)|[![PullRequests](https://img.shields.io/github/issues-pr-closed-raw/buluma/ansible-role-jira.svg)](https://github.com/buluma/ansible-role-jira/pulls/)|[![Ansible Role](https://img.shields.io/ansible/role/d/buluma/jira)](https://galaxy.ansible.com/ui/standalone/roles/buluma/jira/documentation)|## [Example Playbook](#example-playbook)
This example is taken from [`molecule/default/converge.yml`](https://github.com/buluma/ansible-role-jira/blob/master/molecule/default/converge.yml) and is tested on each push, pull request and release.
```yaml
---
- name: Converge
hosts: all
become: true
gather_facts: trueroles:
- role: buluma.jira
```The machine needs to be prepared. In CI this is done using [`molecule/default/prepare.yml`](https://github.com/buluma/ansible-role-jira/blob/master/molecule/default/prepare.yml):
```yaml
---
- hosts: all
remote_user: root
become: true
gather_facts: false
tasks:
- name: Redhat | subscription-manager register
ansible.builtin.raw: |
set -eu
subscription-manager register \
--username={{ lookup('env', 'REDHAT_USERNAME') }} \
--password={{ lookup('env', 'REDHAT_PASSWORD') }} \
--auto-attach
changed_when: false
failed_when: false- name: Debian | apt-get install python3
ansible.builtin.raw: |
set -eu
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y python3
changed_when: false
failed_when: false- name: Redhat | yum install python3
ansible.builtin.raw: |
set -eu
yum makecache
yum install -y python3
changed_when: false
failed_when: false- name: Suse | zypper install python3
ansible.builtin.raw: |
set -eu
zypper -n --gpg-auto-import-keys refresh
zypper -n install -y python3
changed_when: false
failed_when: false- hosts: all
remote_user: root
become: true
tasks:
- name: Cp -rfT /etc/skel /root
ansible.builtin.raw: |
set -eu
cp -rfT /etc/skel /root
changed_when: false
failed_when: false- name: Setenforce 0
ansible.builtin.raw: |
set -eu
setenforce 0
sed -i 's/^SELINUX=.*$/SELINUX=permissive/g' /etc/selinux/config
changed_when: false
failed_when: false- name: Systemctl stop firewalld.service
ansible.builtin.raw: |
set -eu
systemctl stop firewalld.service
systemctl disable firewalld.service
changed_when: false
failed_when: false- name: Systemctl stop ufw.service
ansible.builtin.raw: |
set -eu
systemctl stop ufw.service
systemctl disable ufw.service
changed_when: false
failed_when: false- name: Debian | apt-get install *.deb
ansible.builtin.raw: |
set -eu
DEBIAN_FRONTEND=noninteractive apt-get install -y bzip2 ca-certificates curl gcc gnupg gzip iproute2 passwd procps python3 python3-apt python3-jmespath python3-lxml python3-pip python3-setuptools python3-venv python3-virtualenv python3-wheel rsync sudo tar unzip util-linux xz-utils zip
when: ansible_os_family | lower == "debian"
changed_when: false
failed_when: false- name: Fedora | yum install *.rpm
ansible.builtin.raw: |
set -eu
yum install -y bzip2 ca-certificates curl gcc gnupg2 gzip iproute procps-ng python3 python3-dnf-plugin-versionlock python3-jmespath python3-libselinux python3-lxml python3-pip python3-setuptools python3-virtualenv python3-wheel rsync shadow-utils sudo tar unzip util-linux xz yum-utils zip
when: ansible_distribution | lower == "fedora"
changed_when: false
failed_when: false- name: Redhat-9 | yum install *.rpm
ansible.builtin.raw: |
set -eu
yum-config-manager --enable crb || echo $?
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
yum install -y bzip2 ca-certificates curl gcc gnupg2 gzip iproute procps-ng python3 python3-dnf-plugin-versionlock python3-jmespath python3-libselinux python3-lxml python3-pip python3-setuptools python3-virtualenv python3-wheel rsync shadow-utils sudo tar unzip util-linux xz yum-utils zip
when: ansible_os_family | lower == "redhat" and ansible_distribution_major_version | lower == "9"
changed_when: false
failed_when: false- name: Redhat-8 | yum install *.rpm
ansible.builtin.raw: |
set -eu
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum install -y bzip2 ca-certificates curl gcc gnupg2 gzip iproute procps-ng python3 python3-dnf-plugin-versionlock python3-jmespath python3-libselinux python3-lxml python3-pip python3-setuptools python3-virtualenv python3-wheel rsync shadow-utils sudo tar unzip util-linux xz yum-utils zip
when: ansible_os_family | lower == "redhat" and ansible_distribution_major_version | lower == "8"
changed_when: false
failed_when: false- name: Redhat-7 | yum install *.rpm
ansible.builtin.raw: |
set -eu
subscription-manager repos --enable=rhel-7-server-optional-rpms || echo $?
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y bzip2 ca-certificates curl gcc gnupg2 gzip iproute procps-ng python3 python3-jmespath python3-libselinux python3-lxml python3-pip python3-setuptools python3-virtualenv python3-wheel rsync shadow-utils sudo tar unzip util-linux xz yum-plugin-versionlock yum-utils zip
when: ansible_os_family | lower == "redhat" and ansible_distribution_major_version | lower == "7"
changed_when: false
failed_when: false- name: Suse | zypper -n install *.rpm
ansible.builtin.raw: |
set -eu
zypper -n install -y bzip2 ca-certificates curl gcc gpg2 gzip iproute2 procps python3 python3-jmespath python3-lxml python3-pip python3-setuptools python3-virtualenv python3-wheel rsync shadow sudo tar unzip util-linux xz zip
when: ansible_os_family | lower == "suse"
changed_when: false
failed_when: false
```Also see a [full explanation and example](https://buluma.github.io/how-to-use-these-roles.html) on how to use these roles.
## [Role Variables](#role-variables)
The default values for the variables are set in [`defaults/main.yml`](https://github.com/buluma/ansible-role-jira/blob/master/defaults/main.yml):
```yaml
---
# PostgreSQL JDBC release.
postgresql_jdbc_release: "42.3"# PostgreSQL JDBC version.
postgresql_jdbc_version: "{{ _postgresql_jdbc_version[postgresql_jdbc_release] }}"# PostgreSQL JDBC download details.
postgresql_jdbc_download: "{{ _postgresql_jdbc_download[postgresql_jdbc_version] }}"# Jira release.
jira_release: "8.22"# Jira version.
jira_version: "{{ _jira_version[jira_release] }}"# Jira download details.
jira_download: "{{ _jira_download[jira_version] }}"# Owner and group for Jira.
jira_owner: "jira"
jira_group: "jira"# Jira home directory.
jira_home: "/var/atlassian/application-data/jira"# Jira installation directory.
jira_catalina: "/opt/atlassian/jira"# JVM minimal and maximum memory usage.
jira_jvm_minimum_memory: "2048m"
jira_jvm_maximum_memory: "2048m"# Proxy and context path setup.
jira_catalina_connector_proxyname: ~
jira_catalina_connector_proxyport: ~
jira_catalina_connector_scheme: "http"
jira_catalina_connector_secure: "false"
jira_catalina_context_path: ~# Atlassian Support recommended JVM arguments.
jira_jvm_support_recommended_args: >-
-Datlassian.plugins.enable.wait=300
-XX:+UnlockExperimentalVMOptions
-XX:+UseCGroupMemoryLimitForHeap
-XX:MaxRAMFraction=1# Session timeout (in minutes).
jira_session_timeout: "120"
```## [Requirements](#requirements)
- pip packages listed in [requirements.txt](https://github.com/buluma/ansible-role-jira/blob/master/requirements.txt).
## [State of used roles](#state-of-used-roles)
The following roles are used to prepare a system. You can prepare your system in another way.
| Requirement | GitHub | Version |
|-------------|--------|--------|
|[alvistack.openjdk](https://galaxy.ansible.com/buluma/alvistack.openjdk)|[![Ansible Molecule](https://github.com/buluma/alvistack.openjdk/actions/workflows/molecule.yml/badge.svg)](https://github.com/buluma/alvistack.openjdk/actions/workflows/molecule.yml)|[![Version](https://img.shields.io/github/release/buluma/alvistack.openjdk.svg)](https://github.com/shadowwalker/alvistack.openjdk)|## [Context](#context)
This role is a part of many compatible roles. Have a look at [the documentation of these roles](https://buluma.github.io/) for further information.
Here is an overview of related roles:
![dependencies](https://raw.githubusercontent.com/buluma/ansible-role-jira/png/requirements.png "Dependencies")
## [Compatibility](#compatibility)
This role has been tested on these [container images](https://hub.docker.com/u/buluma):
|container|tags|
|---------|----|
|[Ubuntu](https://hub.docker.com/r/buluma/ubuntu)|all|
|[EL](https://hub.docker.com/r/buluma/enterpriselinux)|7, 8|
|[Debian](https://hub.docker.com/r/buluma/debian)|all|
|[Fedora](https://hub.docker.com/r/buluma/fedora)|all|The minimum version of Ansible required is 4.10, tests have been done to:
- The previous version.
- The current version.
- The development version.If you find issues, please register them in [GitHub](https://github.com/buluma/ansible-role-jira/issues)
## [Changelog](#changelog)
[Role History](https://github.com/buluma/ansible-role-jira/blob/master/CHANGELOG.md)
## [License](#license)
[Apache-2.0](https://github.com/buluma/ansible-role-jira/blob/master/LICENSE)
## [Author Information](#author-information)
[Shadow Walker](https://buluma.github.io/)