Skip to content

Instantly share code, notes, and snippets.

@thehar
Created July 11, 2012 20:18
Show Gist options
  • Save thehar/3093038 to your computer and use it in GitHub Desktop.
Save thehar/3093038 to your computer and use it in GitHub Desktop.
pool_members_search = search(:node, "roles:loadbalancer AND chef_environment:#{node.chef_environment}")
pool_members = pool_members_search.map { |ip| ip[:ipaddress] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment