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::Ipv4)
  • 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::Ipv6])
  • java_version (Integer[8, 11]) (defaults to: 8)
  • scap_user (Optional[String]) (defaults to: undef)
  • scap_key_name (Optional[String]) (defaults to: undef)
  • db_user (Optional[String]) (defaults to: undef)
  • db_pass (Optional[String]) (defaults to: undef)
  • enable_monitoring (Boolean) (defaults to: true)


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
49
50
51
# File 'modules/gerrit/manifests/init.pp', line 2

class gerrit(
    String $config,
    Stdlib::Fqdn $host,
    Stdlib::Ipv4 $ipv4,
    Array[Stdlib::Fqdn] $replica_hosts = [],
    Boolean $replica = false,
    Boolean $use_acmechief = false,
    Optional[Hash] $ldap_config = undef,
    Optional[Stdlib::Ipv6] $ipv6,
    Integer[8, 11] $java_version = 8,
    Optional[String] $scap_user = undef,
    Optional[String] $scap_key_name = undef,
    Optional[String] $db_user = undef,
    Optional[String] $db_pass = undef,
    Boolean $enable_monitoring = true,
) {

    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,
        db_user           => $db_user,
        db_pass           => $db_pass,
        enable_monitoring => $enable_monitoring
    }

    class { '::gerrit::proxy':
        require           => Class['gerrit::jetty'],
        host              => $host,
        ipv4              => $ipv4,
        ipv6              => $ipv6,
        replica_hosts     => $replica_hosts,
        replica           => $replica,
        use_acmechief     => $use_acmechief,
        enable_monitoring => $enable_monitoring
    }

    if !$replica {
        class { '::gerrit::crons':
            require => Class['gerrit::jetty'],
        }
    }
}