Puppet Class: gerrit

Defined in:
modules/gerrit/manifests/init.pp

Overview

Manifest to setup a Gerrit instance

Parameters:

  • config (String)
  • host (Stdlib::Fqdn)
  • ipv4 (Stdlib::IP::Address::V4)
  • replica_hosts (Array[Stdlib::Fqdn]) (defaults to: [])
  • replica (Boolean) (defaults to: false)
  • use_acmechief (Boolean) (defaults to: false)
  • ldap_config (Optional[Hash]) (defaults to: undef)
  • ipv6 (Optional[Stdlib::IP::Address::V6]) (defaults to: undef)
  • java_version (Integer[8, 11]) (defaults to: 8)
  • scap_user (Optional[String]) (defaults to: undef)
  • scap_key_name (Optional[String]) (defaults to: undef)
  • enable_monitoring (Boolean) (defaults to: true)
  • replication (Hash[String, Hash]) (defaults to: {})
  • git_dir (Stdlib::Unixpath) (defaults to: '/srv/gerrit/git')
  • ssh_host_key (String) (defaults to: 'ssh_host_key')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'modules/gerrit/manifests/init.pp', line 2

class gerrit(
    String                            $config,
    Stdlib::Fqdn                      $host,
    Stdlib::IP::Address::V4           $ipv4,
    Array[Stdlib::Fqdn]               $replica_hosts     = [],
    Boolean                           $replica           = false,
    Boolean                           $use_acmechief     = false,
    Optional[Hash]                    $ldap_config       = undef,
    Optional[Stdlib::IP::Address::V6] $ipv6              = undef,
    Integer[8, 11]                    $java_version      = 8,
    Optional[String]                  $scap_user         = undef,
    Optional[String]                  $scap_key_name     = undef,
    Boolean                           $enable_monitoring = true,
    Hash[String, Hash]                $replication       = {},
    Stdlib::Unixpath                  $git_dir           = '/srv/gerrit/git',
    String                            $ssh_host_key      = 'ssh_host_key'
) {

    class { 'gerrit::jetty':
        host              => $host,
        ipv4              => $ipv4,
        ipv6              => $ipv6,
        replica           => $replica,
        replica_hosts     => $replica_hosts,
        config            => $config,
        ldap_config       => $ldap_config,
        java_version      => $java_version,
        scap_user         => $scap_user,
        scap_key_name     => $scap_key_name,
        enable_monitoring => $enable_monitoring,
        replication       => $replication,
        ssh_host_key      => $ssh_host_key,
        git_dir           => $git_dir,
    }

    class { 'gerrit::proxy':
        host              => $host,
        ipv4              => $ipv4,
        ipv6              => $ipv6,
        replica_hosts     => $replica_hosts,
        replica           => $replica,
        use_acmechief     => $use_acmechief,
        enable_monitoring => $enable_monitoring,
    }

    class { 'gerrit::crons': }
}