<% cruise_host = rubber_instances.for_role('cruise').first @path = "/etc/nginx/rubber/tools/cruise.conf" %> <% if cruise_host %> location /cruise { proxy_pass http://<%= cruise_host.full_name %>:<%= rubber_env.cruise_port %>; } <% end %>