Skip to content

Instantly share code, notes, and snippets.

@breu
Created October 3, 2013 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breu/6810149 to your computer and use it in GitHub Desktop.
Save breu/6810149 to your computer and use it in GitHub Desktop.
rabbit_hosts chef search gem
osops_search(search_string="rabbitmq-server",one_or_all=:all,include_me=true,order=[:role]).sort_by{|ip| IPAddr.new ip.rabbitmq.address}.map {|k| "#{k.rabbitmq.address}:#{k.rabbitmq.port}"}.join(",")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment