Commit 16a49e0f4702845b8135af13b1a1ffafeb535454
Committed by
Athos
1 parent
3565a4d0
Exists in
master
and in
90 other branches
Configuring gitlab to use remote redis
Showing
2 changed files
with
10 additions
and
5 deletions
Show diff stats
cookbooks/gitlab/recipes/default.rb
... | ... | @@ -5,11 +5,6 @@ if node['platform'] == 'centos' |
5 | 5 | end |
6 | 6 | end |
7 | 7 | |
8 | -package 'redis' | |
9 | -service 'redis' do | |
10 | - action [:enable, :start] | |
11 | -end | |
12 | - | |
13 | 8 | package 'gitlab' |
14 | 9 | |
15 | 10 | template '/etc/gitlab/database.yml' do |
... | ... | @@ -40,6 +35,15 @@ template '/etc/gitlab-shell/config.yml' do |
40 | 35 | notifies :restart, 'service[gitlab]' |
41 | 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 | 48 | # Run under /gitlab |
45 | 49 | #################################################### | ... | ... |
... | ... | @@ -0,0 +1 @@ |
1 | +production: redis://<%= node['peers']['database'] %>:6379 | ... | ... |