/ansible-playbook-bitbucket

Ansible Playbook for Atlassian BitBucket Installation.

Primary LanguageShellMIT LicenseMIT

Ansible Playbook for BitBucket

Build Status GitHub tag GitHub license

Ansible Playbook for Atlassian BitBucket Installation.

Requirements

This playbook require Ansible 2.0 or higher.

This playbook was designed for Ubuntu Server 14.04 LTS and Ubuntu Server 16.04 LTS.

Quick Start

All-in-one (AIO) builds are a great way to perform an BitBucket build for

  • A development environment
  • An overview of how all of the BitBucket services fit together
  • A simple lab deployment

Although AIO builds aren’t recommended for large production deployments, they’re great for smaller proof-of-concept deployments.

AIO with Customization

There are four main steps for running a customized AIO build:

  • Install Ansible
  • Initial roles, vars and hosts bootstrap
  • Configuration (this step is optional)
  • Run playbooks

Start by cloning the ansible-playbook-bitbucket repository and changing into the repository root directory:

$ git clone https://github.com/pantarei/ansible-playbook-bitbucket \
    /opt/ansible-playbook-bitbucket
$ cd /opt/ansible-playbook-bitbucket

Next bootstrap Ansible by executing:

$ scripts/bootstrap-ansible.sh

Now we can bootstrap Ansible's roles, vars and hosts by executing:

$ scripts/bootstrap-aio.sh

By default the scripts deploy only BitBucket and PostgreSQL. At this point you may optionally adjuct which services are deployed within your AIO build. Look at the group_vars/all and inventory/aio for more details. For example, if you'd like to upgrade your Ubuntu set the apt_upgrade as full at group_vars/all:

apt_upgrade: full

Finally, run the plabooks by executing:

$ scripts/run-playbooks.sh

Dependencies

License

Author Information