lusis/chef-logstash — pull request #21 by benattar (2012-08-14 07:05:38+00:00)
Title: Searching for server ip by role breaks for those of us not using roles.  Let's fix this.

My org doesn't use roles the same as most people. We're of the philosophy that roles should be avoided except in rare cases where you want something universal across all environments that you cannot version-pin the same as you can with a cookbook. We essentially use cookbooks for our attributes and run lists so we can keep changes to them in version control and pin those changes per environment. In this case, we don't want to have the need to create roles as a simple pointer to a box, we build logic in our wrapper recipes to set [:logstash][:agent][:server_ipaddress]. Others may find it useful to do so as well. I've made the changes to fall back to this if we fail searching for a node by role.