Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameters for Gitlab 8 #236

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

$socket_path = "${git_home}/gitlab/tmp/sockets/gitlab.socket"
$root_path = "${git_home}/gitlab/public"

if $gitlab_workhorse_branch {
$gitlab_workhorse_socket_path="${git_home}/gitlab/tmp/sockets/gitlab-workhorse.socket"
}

# gitlab
if $gitlab_manage_nginx {
Expand Down Expand Up @@ -41,7 +45,7 @@

file { '/etc/logrotate.d/gitlab':
ensure => file,
source => "${git_home}/gitlab/lib/support/logrotate/gitlab",
content => template('gitlab/gitlab_logrotate.erb'),
owner => root,
group => root,
mode => '0644';
Expand All @@ -52,13 +56,25 @@
"${git_home}/gitlab/tmp",
"${git_home}/gitlab/tmp/pids",
"${git_home}/gitlab/tmp/sockets",
"${git_home}/gitlab/public",
"${git_home}/gitlab/public/uploads",
"${git_home}/gitlab/public",
]:
ensure => directory,
mode => '0755',
}


#gitlab does not provide an option to configure the uploads directory location, so create a symlink to
#the desired folder if specified (otherwise, simply ensure the default uploads folder is there)
$gitlab_uploads_path_type = $gitlab_uploads_folder ? {
undef => 'directory',
default => 'link',
}
file { "${git_home}/gitlab/public/uploads":
ensure => $gitlab_uploads_path_type,
target => $gitlab_uploads_folder,
mode => '0750',
force => true, #for the conversion to link
}

#gitlab does not provide an option to configure a log directory, so create a symlink to
#the desired folder if specified (otherwise, simply ensure the default log folder is there)
$gitlab_log_path_type = $gitlab_log_folder ? {
Expand Down
Loading