Browse files

Use specific host name for every worker process.

  • Loading branch information...
1 parent b0e726a commit 83ba59d794b27c2e61e29f449b10cff4a7ed83cc @roidrage roidrage committed Mar 15, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 worker_host/travis_worker/recipes/bluebox.rb
View
3 worker_host/travis_worker/recipes/bluebox.rb
@@ -28,6 +28,7 @@
worker_name = "#{app}.#{node[:fqdn]}"
home = "#{node[:travis][:worker][:home]}/#{app}"
service_name = "travis-worker-#{worker}"
+ host_name = "#{worker}.#{node[:travis][:worker][:hostname]}"
service service_name do
action :nothing
@@ -71,7 +72,7 @@
mode "0600"
variables :amqp => node[:travis][:worker][:amqp],
:worker => node[:travis][:worker],
- :hostname => node[:travis][:worker][:hostname],
+ :hostname => host_name,
:bluebox => node[:bluebox],
:librato => node[:collectd_librato]

0 comments on commit 83ba59d

Please sign in to comment.