Forge Home

gerrit

Module for managing gerrit code review

10,595 downloads

9,966 latest version

4.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.3 (latest)
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Dec 29th 2014
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'datacentred-gerrit', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add datacentred-gerrit
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install datacentred-gerrit --version 1.0.3

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

datacentred/gerrit — version 1.0.3 Dec 29th 2014

#Gerrit

####Table of Contents

  1. Overview
  2. Dependencies
  3. Module Description - What the module does and why it is useful
  4. Usage - Configuration options and additional functionality
  5. Limitations - OS compatibility, etc.

##Overview

Module to install and configure gerrit code review

##Dependencies

  • puppetlabs/puppetlabs-inifile
  • puppetlabs/puppetlabs-mysql
  • puppetlabs/puppetlabs-stdlib
  • maestrodev/puppet-wget

##Module Description

Installs the gerrit server packages and dependencies, optionally manages a database locally and allows basic configuration and authentication.

##Usage

To install a basic default installation with H2 database, OpenID authentication into /opt/gerrit/review

include ::gerrit

To connect to an external database

class { 'gerrit':
  db_manage   => true,
  db_provider => 'MYSQL',
  db_hostname => 'db.example.com',
  db_database => 'reviewdb',
  db_username => 'gerrit2',
  db_password => 'Kubhit8Quaut',
}

To authenticate against LDAP

class { 'gerrit':
  auth_type                 => 'LDAP',
  ldap_server               => 'ldap://ldap.example.com',
  ldap_account_base         => 'ou=People,dc=example,dc-com',
  ldap_account_pattern      => '(&(objectClass=person)(uid=${username}))',
  ldap_full_name            => 'displayName',
  ldap_email_address        => 'mail',
  ldap_group_base           => 'ou=Groups,dc=example,dc=com',
  ldap_group_member_pattern => '(&(objectClass=group)(member=${dn}))',
}

##Limitations

Only tested on Ubuntu 14.04