Created
October 3, 2013 13:51
-
-
Save breu/6810149 to your computer and use it in GitHub Desktop.
rabbit_hosts chef search gem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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