-
-
Notifications
You must be signed in to change notification settings - Fork 167
/
params.pp
43 lines (37 loc) · 956 Bytes
/
params.pp
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
# == Class gitlab::params
#
# This class is meant to be called from gitlab.
# It sets variables according to platform.
#
class gitlab::params {
# package parameters
$package_ensure = installed
$manage_package_repo = true
# service parameters
case $::osfamily {
'debian': {
$service_enable = true
}
'redhat': {
$service_enable = false
}
default: {
$service_enable = true
}
}
$service_restart = '/usr/bin/gitlab-ctl restart'
$service_start = '/usr/bin/gitlab-ctl start'
$service_stop = '/usr/bin/gitlab-ctl stop'
$service_status = '/usr/bin/gitlab-ctl status'
$service_hasstatus = true
$service_hasrestart = true
$service_ensure = running
$service_manage = true
$service_name = 'gitlab-runsvdir'
$service_user = 'root'
$service_group = 'root'
# gitlab specific
$config_file = '/etc/gitlab/gitlab.rb'
$secrets_file = '/etc/gitlab/gitlab-secrets.json'
$edition = 'ce'
}