diff --git a/cookbooks/gitlab/recipes/default.rb b/cookbooks/gitlab/recipes/default.rb index bc0cc4a..8da5920 100644 --- a/cookbooks/gitlab/recipes/default.rb +++ b/cookbooks/gitlab/recipes/default.rb @@ -5,11 +5,6 @@ if node['platform'] == 'centos' end end -package 'redis' -service 'redis' do - action [:enable, :start] -end - package 'gitlab' template '/etc/gitlab/database.yml' do @@ -40,6 +35,15 @@ template '/etc/gitlab-shell/config.yml' do notifies :restart, 'service[gitlab]' end +# gitlab redis configuration +template '/usr/lib/gitlab/config/resque.yml' do + owner 'root' + group 'root' + mode 0644 + + notifies :restart, 'service[gitlab]' +end + #################################################### # Run under /gitlab #################################################### diff --git a/cookbooks/gitlab/templates/resque.yml.erb b/cookbooks/gitlab/templates/resque.yml.erb new file mode 100644 index 0000000..1c89b77 --- /dev/null +++ b/cookbooks/gitlab/templates/resque.yml.erb @@ -0,0 +1 @@ +production: redis://<%= node['peers']['database'] %>:6379 -- libgit2 0.21.2