jpnewman.gerrit

jpnewman.gerrit

Ansible Role Build Status

This Ansible role installs Gerrit along with the following tools:

  • gitweb
  • jeepyb

Requirements

You need Ansible version 2.x.

Libraries

  • retr0h.logrotate

Make sure to update your ansible.cfg file to include the libraries.

Example

library = ../../roles

Role Variables

Variable Description Default Value
gerrit_version Gerrit version
gerrit_url URL to download Gerrit
gerrit_version 2.11.9
gerrit_url https://www.gerritcodereview.com/download/gerrit-{{ gerrit_version }}.war
gerrit_user gerrit
gerrit_group gerrit
gerrit_user_home /var/gerrit
gerrit_dir {{ gerrit_user_home }}/review
gerrit_config gerrit_config object
gerrit_database_type MYSQL
gerrit_database_mysql gerrit_database_mysql object
gerrit_index_type LUCENE
gerrit_auth_type HTTP
gerrit_container gerrit_container object
gerrit_sshd gerrit_sshd object
gerrit_httpd gerrit_httpd object
gerrit_cache gerrit_cache object
gerrit_receive gerrit_receive object
gerrit_plugins gerrit_plugins object
gerrit_readonly_mode no
gerrit_site_logo logo.png
gerrit_site_logo_alt logo
gerrit_site_header Code Review
gerrit_site_css_file GerritSite.css

Objects

gerrit_config Object

Field Description Default Value
basePath git
canonicalWebUrl http://localhost

gerrit_database_mysql Object

Field Description Default Value
hostname localhost
database gerrit
username gerrit
password gerrit
url "jdbc:mysql://localhost:3306/gerrit?user=gerrit&password=gerrit&useUnicode=false&characterEncoding=latin1"

gerrit_container Object

Field Description Default Value
heapLimit 4g
javaOptions -server -XX:+PrintGCDetails -XX:MaxPermSize=256M -Xloggc:/var/gerrit/review/logs/gc.log -Djavax.net.ssl.trustStore=/var/gerrit/review/etc/cacerts -Djavax.net.ssl.trustStorePassword=changeit
user gerrit

gerrit_sshd Object

Field Description Default Value
listenAddress "*:29418"
threads 32

gerrit_httpd Object

Field Description Default Value
listenUrl proxy-https://127.0.0.1:8080/

gerrit_cache Object

Field Description Default Value
directory cache

gerrit_receive Object

Field Description Default Value
checkReferencedObjectsAreReachable false

gerrit_plugins Object

Field Description Default Value
allowRemoteAdmin true

Bouncy Castle

Field Description Default Value
gerrit_bouncycastle_jars [http://repo2.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.52/bcprov-jdk15on-1.52.jar,
http://repo2.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/1.52/bcpkix-jdk15on-1.52.jar]

https://code.google.com/p/gerrit/issues/detail?id=4056

Plugins

Field Description Default Value
gerrit_war_plugins []
gerrit_plugins_folder plugins

Jeepyb

Field Description Default Value
gerrit_install_jeepyb true
gerrit_jeepyb_run_user gerrit
gerrit_jeepyb_github_repo https://github.com/openstack-infra/jeepyb.git
gerrit_jeepyb_github_version master
gerrit_jeepyb_path /opt/jeepyb
gerrit_jeepyb_log_folder /var/log/gerrit
gerrit_jeepyb_expire_old_reviews_log_file expire_reviews.log
gerrit_jeepyb_virtualenv_path "{{ gerrit_jeepyb_path }}/venv"
gerrit_jeepyb_virtualenv_version python2.7

Dependencies

  • jpnewman.java
  • jpnewman.apache
  • retr0h.logrotate

Example Playbook

- hosts: servers
  roles:
     - { role: jpnewman.gerrit, tags: ["gerrit"] }

Testing

For more details on testing, check the readme at ./tests/templates/README.md.

License

MIT / BSD

Author Information

John Paul Newman

Informazioni sul progetto

Gerrit

Installa
ansible-galaxy install jpnewman.gerrit
Licenza
mit
Download
83
Proprietario
Software Engineer with DevOps working on both Windows and *nix.