Skip to main content
summaryrefslogtreecommitdiffstats
blob: 5d70ea6b04d275b0007af23030830165cdd3130f (plain) (blame)
1
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
52
53
define gerrit::defaultsites ($base = $gerrit::base, $userOwner = $gerrit::userOwner, $userGroup = $gerrit::userGroup,) {
  include "gerrit"

  /* Defaults */

  Gerrit {
    base      => $base,
    userOwner => $userOwner,
    userGroup => $userGroup,
  }

  Gerrit::Site {
    base      => $base,
    userOwner => $userOwner,
    userGroup => $userGroup,
  }

  /* Instances */

  gerrit { "2.9.4":
  }
  
  gerrit { "2.10":
  }
  
  gerrit { "2.11.10":
  }
  
  /* Sites */

  gerrit::site { "gerrit-2.9.4":
    version => "2.9.4",
    port    => 28294,
    sshport => 29294,
    require => Gerrit["2.9.4"],
  }
  
  gerrit::site { "gerrit-2.10":
    version => "2.10",
    port    => 28210,
    sshport => 29210,
    envdefault => true,
    require => Gerrit["2.10"],
  }
    
  gerrit::site { "gerrit-2.11.10":
    version => "2.11.10",
    port    => 28211,
    sshport => 29211,
    require => Gerrit["2.11.10"],
  }

}

Back to the top