/ansible-role-gitbucket

Deploy GitBucket without servlet container on CentOS/Ubuntu

Primary LanguageShellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Ansible Role GitBucket

build status

An ansible role installs takezoe/gitbucket without servlet container on CentOS/Ubuntu. This role deploys minimum configration for GitBucket.

Requirements

None.

Role Variables

Which version of GitBucket to deploy

Releases · takezoe/gitbucket

# vars/main.yml
gitbucket_version: 3.3

Specify GitBucket URL

GitBucket URL is http://[gitbucket_host]:[gitbucket_port]/[gitbucket_prefix]

# vars/main.yml
gitbucket_host: localhost
gitbucket_port: 8080
gitbucket_prefix: ""

GitBucket data directory

# defaults/main.yml
gitbucket_home: /var/lib/gitbucket

Paths for downloaded gitbucket.war

# defaults/main.yml
gitbucket_dir: /usr/share/gitbucket
gitbucket_war_dir: "{{ gitbucket_dir }}/lib"
gitbucket_war_file: "{{ gitbucket_war_dir }}/gitbucket.war"

GitBucket log directory

# defaults/main.yml
gitbucket_log_dir: /var/log/gitbucket

JVM option used when starting GitBucket

# defaults/main.yml
gitbucket_jvm_opts: -Dmail.smtp.starttls.enable=true

Dependencies

Example Playbook

- hosts: all
  sudo: yes
  roles:
     - { role: distkloc.gitbucket, gitbucket_host: gitbucket.example.com, gitbucket_port: 80  }

License

BSD