forked from saltstack-formulas/gerrit-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar.example
82 lines (82 loc) · 3.85 KB
/
pillar.example
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
gerrit:
config:
# Configure auth section https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#auth
# For example to configure type, httpHeader and logoutUrl put below pillars
auth:
type: oauth
httpHeader: GITHUB_USER
logoutUrl: /
# Configure gerrit section https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#gerrit
# For example to configure canonicalWebUrl and canonicalGitUrl just put below pillars
gerrit:
serverId: myServerId
canonicalWebUrl: http://example.com/
canonicalGitUrl: git://example.com/
# Configure database section https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#database
database:
# Supports h2 and other database types, but h2 and mysql are well tested ONLY
type: h2
# Before starting using mysql, database and user with correct rights should be created
dbname: reviewdb
hostname: localhost
username: gerrit
password: gerrit
# Configure the sshd section https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#sshd
sshd:
# to listen on ip address 10.1.12.125 put below pillar
listenAddress: 10.1.12.125:29418
# Configure the httpd section https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#httpd
httpd:
# to listen on ip address 192.168.1.12 put below pillar
listenUrl: http://192.168.1.12/
# Plain-text HTTP relayed from a reverse proxy
listenUrl: proxy-http://192.168.1.12:8080
# to specify class that implements the javax.servlet.Filter interface
filterClass = org.anyorg.MySecureFilter
# Configure the sendemail section https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#sendemail
# Below example shows how to configure sending email via google
sendemail:
smtpServer: smtp.google.com
smtpServerPort: 465
smtpEncryption: SSL
smtpUser: [email protected]
smtpPass: mypass
# Configure the index section https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#index
index:
# Below example shows how to configure different thread options
threads: 5
batchThreads: 4
# Configure the receive section https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#receive
receive:
# Configure number of threads to perform change creation or patch set updates concurrently
changeUpdateThreads: 5
# Format secure.conf file content https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#secure.config
secure:
auth:
registerEmailPrivateKey: AMahuFyehfwr5mTldZNfBg9LsnRIDvfc8yn/DQ08jAA0Y7VV
database:
username: webuser
password: s3kr3t
ldap
password: l3tm3srch
# Configure custom config sections in gerrit.config
# Below example shows how to configure github-plugin section
config_custom_sections:
github:
url: https://github.com
apiUrl: https://api.github.com
clientId: 12343e611234c6ab4321
clientSecret: 123475f1d4da1234f1658b123432d5dfa27a4321
# Install core plugins https://gerrit-review.googlesource.com/Documentation/config-plugins.html#core-plugins
# For example to install such core plugins as replication and download-commands
core_plugins:
- replication
- download-commands
libraries:
github-oauth:
source: https://gerrit-ci.gerritforge.com/view/Plugins-stable-2.12/job/plugin-github-mvn-stable-2.12/lastSuccessfulBuild/artifact/github-oauth/target/github-oauth-2.12-SNAPSHOT.jar
source_hash: md5=bb34533f320637f1fa8cb69004ef4a00
plugins:
github-plugin:
source: https://gerrit-ci.gerritforge.com/view/Plugins-stable-2.12/job/plugin-github-mvn-stable-2.12/3/artifact/github-plugin/target/github-plugin-2.12-SNAPSHOT.jar
source_hash: md5=42ebd7a68c6e0a35e7885c69b28c503b