Commit 16a49e0f4702845b8135af13b1a1ffafeb535454

Authored by Sergio Oliveira
Committed by Athos
1 parent 3565a4d0

Configuring gitlab to use remote redis

cookbooks/gitlab/recipes/default.rb
@@ -5,11 +5,6 @@ if node['platform'] == 'centos' @@ -5,11 +5,6 @@ if node['platform'] == 'centos'
5 end 5 end
6 end 6 end
7 7
8 -package 'redis'  
9 -service 'redis' do  
10 - action [:enable, :start]  
11 -end  
12 -  
13 package 'gitlab' 8 package 'gitlab'
14 9
15 template '/etc/gitlab/database.yml' do 10 template '/etc/gitlab/database.yml' do
@@ -40,6 +35,15 @@ template '/etc/gitlab-shell/config.yml' do @@ -40,6 +35,15 @@ template '/etc/gitlab-shell/config.yml' do
40 notifies :restart, 'service[gitlab]' 35 notifies :restart, 'service[gitlab]'
41 end 36 end
42 37
  38 +# gitlab redis configuration
  39 +template '/usr/lib/gitlab/config/resque.yml' do
  40 + owner 'root'
  41 + group 'root'
  42 + mode 0644
  43 +
  44 + notifies :restart, 'service[gitlab]'
  45 +end
  46 +
43 #################################################### 47 ####################################################
44 # Run under /gitlab 48 # Run under /gitlab
45 #################################################### 49 ####################################################
cookbooks/gitlab/templates/resque.yml.erb 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +production: redis://<%= node['peers']['database'] %>:6379