forked from mc0e/vagrant-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgitlab.pp
More file actions
43 lines (38 loc) · 1.3 KB
/
gitlab.pp
File metadata and controls
43 lines (38 loc) · 1.3 KB
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
# Configure a GitLab server (gitlab.domain.tld)
#
node /gitlab_server/ {
$gitlab_dbname = 'gitlab_prod'
$gitlab_dbuser = 'labu'
$gitlab_dbpwd = 'labpass'
exec { 'initial update':
command => '/usr/bin/apt-get update',
}
Exec['initial update'] -> Package <| |>
class { 'gitlab_requirements':
gitlab_dbname => $gitlab_dbname,
gitlab_dbuser => $gitlab_dbuser,
gitlab_dbpwd => $gitlab_dbpwd,
}
class {
'gitlab':
git_user => 'git',
git_home => '/home/git',
git_email => 'gitlab@fooboozoo.fr',
git_comment => 'GitLab',
gitlab_sources => 'https://github.com/gitlabhq/gitlabhq.git',
gitlab_domain => 'gitlab.localdomain.local',
gitlab_http_timeout => '300',
gitlab_dbtype => 'mysql',
gitlab_backup => true,
#gitlab_relative_url_root => '/gitlab',
gitlab_dbname => $gitlab_dbname,
gitlab_dbuser => $gitlab_dbuser,
gitlab_dbpwd => $gitlab_dbpwd,
ldap_enabled => false,
}
Class['gitlab_requirements'] -> Class['gitlab'] ->
file { '/etc/nginx/conf.d/default.conf':
ensure => absent,
} ->
exec { '/usr/sbin/service nginx reload': }
}