Commit 696fe2a3efd39c44e231262ed5870d96874d3299

Authored by Jacob Vosmaer
1 parent d4984e20

Add the ability to change the Redis port

@@ -12,6 +12,7 @@ @@ -12,6 +12,7 @@
12 - Use sane LDAP defaults 12 - Use sane LDAP defaults
13 - Clear the Rails cache after modifying gitlab.yml 13 - Clear the Rails cache after modifying gitlab.yml
14 - Only run `rake db:migrate` when the gitlab-rails version has changed 14 - Only run `rake db:migrate` when the gitlab-rails version has changed
  15 +- Ability to change the Redis port
15 16
16 6.8.1 17 6.8.1
17 - Use gitlab-rails 6.8.1 18 - Use gitlab-rails 6.8.1
files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb
@@ -74,6 +74,15 @@ template_symlink File.join(gitlab_rails_etc_dir, "database.yml") do @@ -74,6 +74,15 @@ template_symlink File.join(gitlab_rails_etc_dir, "database.yml") do
74 restarts dependent_services 74 restarts dependent_services
75 end 75 end
76 76
  77 +template_symlink File.join(gitlab_rails_etc_dir, "resque.yml") do
  78 + link_from File.join(gitlab_rails_source_dir, "config/resque.yml")
  79 + source "resque.yml.erb"
  80 + owner "root"
  81 + group "root"
  82 + mode "0644"
  83 + restarts dependent_services
  84 +end
  85 +
77 template_symlink File.join(gitlab_rails_etc_dir, "gitlab.yml") do 86 template_symlink File.join(gitlab_rails_etc_dir, "gitlab.yml") do
78 link_from File.join(gitlab_rails_source_dir, "config/gitlab.yml") 87 link_from File.join(gitlab_rails_source_dir, "config/gitlab.yml")
79 source "gitlab.yml.erb" 88 source "gitlab.yml.erb"
files/gitlab-cookbooks/gitlab/templates/default/resque.yml.erb 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +production: redis://localhost:<%= node['gitlab']['redis']['port'] %>