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

Commit

Permalink
syntax cleanup
Browse files Browse the repository at this point in the history
dwradcliffe committed Jul 9, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent aeda71b commit ad421e8
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cookbooks/rubygems-app/recipes/delayed_job.rb
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
# Recipe:: delayed_job
#

redis_ip = search(:node, "name:redis01.#{node.chef_environment}.rubygems.org")[0]['ipaddress']
redis_ip = search('node', "name:redis01.#{node.chef_environment}.rubygems.org")[0]['ipaddress']

runit_service 'delayed_job' do
owner 'deploy'
2 changes: 1 addition & 1 deletion cookbooks/rubygems-app/recipes/unicorn.rb
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
before_fork 'sleep 1'
end

redis_ip = search(:node, "name:redis01.#{node.chef_environment}.rubygems.org")[0]['ipaddress']
redis_ip = search('node', "name:redis01.#{node.chef_environment}.rubygems.org")[0]['ipaddress']

runit_service 'unicorn' do
owner 'deploy'
2 changes: 1 addition & 1 deletion cookbooks/rubygems-database/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
'type' => 'host',
'db' => "rubygems_#{node.chef_environment}",
'user' => secrets['rails_postgresql_user'],
'addr' => "#{search(:node, "name:app01.#{node.chef_environment}.rubygems.org")[0]['ipaddress']}/0",
'addr' => "#{search('node', "name:app01.#{node.chef_environment}.rubygems.org")[0]['ipaddress']}/0",
'method' => 'md5'
},
{
2 changes: 1 addition & 1 deletion cookbooks/rubygems-hostname/recipes/dns.rb
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
else
dwradcliffe_dnsimple_record "create A record for #{node.name}" do
name node.name.sub('.rubygems.org', '')
content `/usr/bin/curl http://169.254.169.254/latest/meta-data/public-ipv4`.chomp
content Mixlib::ShellOut.new('/usr/bin/curl http://169.254.169.254/latest/meta-data/public-ipv4').run_command.stdout.chomp
type 'A'
domain 'rubygems.org'
username dnsimple_credentials['username']
6 changes: 3 additions & 3 deletions cookbooks/rubygems-sensu/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@

# this will only ever return a single 'ip' key since node comes from
# the node name and is therefore unique.
monitoring_host = search(:node, 'name:monitoring01.common.rubygems.org')
monitoring_host = search('node', 'name:monitoring01.common.rubygems.org')

# set the address of the host to the local ipaddress if the node doesn't
# exist in chef's index yet since it's being boostrapped.
@@ -23,8 +23,8 @@
node.default['sensu']['redis']['port'] = 6379

sensu_client node.name do
address node.ipaddress
subscriptions node.roles + ['all']
address node['ipaddress']
subscriptions node['roles'] + ['all']
additional(environment: node.chef_environment)
end

0 comments on commit ad421e8

Please sign in to comment.