Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Use redis host from the data bag for delayed job, too
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kottler committed Jul 19, 2014
1 parent 998413f commit 4e6d8ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Expand Up @@ -190,7 +190,7 @@ GRAPH
rubygems-sensu (>= 0.0.0)
rubygems-ssh (>= 0.0.0)
rubygems-utility (>= 0.0.0)
rubygems-app (0.0.29)
rubygems-app (0.0.30)
apt (>= 0.0.0)
chef-vault (>= 0.0.0)
git (>= 0.0.0)
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/rubygems-app/metadata.rb
@@ -1,6 +1,6 @@
name 'rubygems-app'

version '0.0.29'
version '0.0.30'

depends 'apt'
depends 'chef-vault'
Expand Down
3 changes: 2 additions & 1 deletion cookbooks/rubygems-app/recipes/delayed_job.rb
Expand Up @@ -3,7 +3,8 @@
# Recipe:: delayed_job
#

redis_ip = search('node', "name:redis02.#{node.chef_environment}.rubygems.org")[0]['ipaddress']
redis_host = data_bag_item('hosts', 'redis')['environments'][node.chef_environment]
redis_ip = search('node', "name:#{redis_host}.#{node.chef_environment}.rubygems.org")[0]['ipaddress']

runit_service 'delayed_job' do
owner 'deploy'
Expand Down

0 comments on commit 4e6d8ee

Please sign in to comment.