Giter VIP home page Giter VIP logo

ansible-jira's Introduction

Ansible deployment for JIRA

Table of contents

1. QuickStart

ansible-galaxy install fauzigo.jira
# Deploy to a remote
ansible-playbook jira.yml --extra-vars=/path/to/file_vars

2. Overview

An Ansible playbook to automate the installation of Atlassian Jira, could posibly be used to keep it updated

The Task performed by the playbook are:

- install or check if java-1.7.0-openjdk-devel is installed
- create a group for jira
- create a user that belong to the group created before
- Download the standalone tar file given a version
- extract the tar file
- create a symlink to an shorter dir name for the extracted dir
- set the jira-home dir in the jira-application.properties file
- copy an init script or a service file depending on the EL major release 

3. Requirements

Ansible to be installed in the local machine.

Because I'm using RHEL the easiest way to install is:

yum install ansible

but as you are already here (github) you can try:

git clone git://github.com/ansible/ansible.git --recursive
cd ./ansible
source ./hacking/env-setup

4. Usage

  1. git clone http://github.com/fauzigo/ansible-jira or ansible-galaxy install fauzigo.jira
  2. create a vars file in you group_vars dir or host_vars or simply add them directory on your main yml file
  3. run the Ansible playbook, the fastest way is:
ansible-playbook jira.yml --extra-vars=/path/to/file_var

4.1 Playbook Arguments

  • jira_user_group: group that jira files are going to belong to
  • jira_user_group_gid: group id
  • jira_user: user that jira files are going to belong to
  • jira_user_uid: user id
  • jira_user_home_dir: path to where the sources are going to be, Default: /opt
  • jira_home: jira-home path, if it's the first time installation use whereever you like, otherwise use your current
  • jira_version: the version check latest in atlassian site
  • jira_version_file_sha256sum: you should have this
  • jira_download_link: link to download the .tar.gz file (note: it will be concatenated with the version var)

TODO: make gid, uid and sha256sum optional

Example:

ansible-playbook jira.yml --extra-vars 'jira_user_group=jira jira_user_group_gid=1000 jira_user=jira jira_user_uid=1000 jira_user_home_dir=/opt jira_home=/var/jira jira_download_link="http://www.atlassian.com/software/jira/downloads/binary/atlassian-jira" jira_version=6.3.9 jira_version_file_sha256sum=5ba3496347d78383e0201a80ecd0bafa9b6a2ea1e4841f4d843c1369d21da9a9'

TODO use the handler after install to run the application

5. After install

You can just ssh to the server(s) (more than one if you are using jira datacenter) and:

for releases version 6 or less [works with 7 as well]

service jira start

for releases version 7

systemctl start jira.service

Enjoy

ansible-jira's People

Contributors

fauzigo avatar kevin7282 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.