Commit 344d99383dd9974449d58f2967d10df3d8099bd0

Authored by Julien Pivotto
1 parent 47224ab7

allow specifying the gitlab ssh port

this is useful when running gitlab behind a firewall/gateway.
files/gitlab-cookbooks/gitlab/attributes/default.rb
@@ -96,6 +96,7 @@ default['gitlab']['gitlab-rails']['gitlab_shell_repos_path'] = "/var/opt/gitlab/ @@ -96,6 +96,7 @@ default['gitlab']['gitlab-rails']['gitlab_shell_repos_path'] = "/var/opt/gitlab/
96 default['gitlab']['gitlab-rails']['gitlab_shell_hooks_path'] = "/opt/gitlab/embedded/service/gitlab-shell/hooks/" 96 default['gitlab']['gitlab-rails']['gitlab_shell_hooks_path'] = "/opt/gitlab/embedded/service/gitlab-shell/hooks/"
97 default['gitlab']['gitlab-rails']['gitlab_shell_upload_pack'] = true 97 default['gitlab']['gitlab-rails']['gitlab_shell_upload_pack'] = true
98 default['gitlab']['gitlab-rails']['gitlab_shell_receive_pack'] = true 98 default['gitlab']['gitlab-rails']['gitlab_shell_receive_pack'] = true
  99 +default['gitlab']['gitlab-rails']['gitlab_shell_ssh_port'] = 22
99 default['gitlab']['gitlab-rails']['git_bin_path'] = "/opt/gitlab/embedded/bin/git" 100 default['gitlab']['gitlab-rails']['git_bin_path'] = "/opt/gitlab/embedded/bin/git"
100 default['gitlab']['gitlab-rails']['git_max_size'] = 5242880 101 default['gitlab']['gitlab-rails']['git_max_size'] = 5242880
101 default['gitlab']['gitlab-rails']['git_timeout'] = 10 102 default['gitlab']['gitlab-rails']['git_timeout'] = 10
files/gitlab-cookbooks/gitlab/templates/default/gitlab.yml.erb
@@ -212,7 +212,7 @@ production: &base @@ -212,7 +212,7 @@ production: &base
212 receive_pack: <%= @gitlab_shell_receive_pack %> 212 receive_pack: <%= @gitlab_shell_receive_pack %>
213 213
214 # If you use non-standard ssh port you need to specify it 214 # If you use non-standard ssh port you need to specify it
215 - # ssh_port: 22 215 + ssh_port: <%= @gitlab_shell_ssh_port %>
216 216
217 ## Git settings 217 ## Git settings
218 # CAUTION! 218 # CAUTION!