Skip to content

Instantly share code, notes, and snippets.

@davidlee
Created March 9, 2009 04:54
Show Gist options
  • Save davidlee/76115 to your computer and use it in GitHub Desktop.
Save davidlee/76115 to your computer and use it in GitHub Desktop.
munin_nodes = Chef::Node.list.map do |name|
Chef::Node.load(name)
end.select do |node|
node.recipe_list.include?( "munin-node" )
end
munin_node_list = {}
munin_nodes.each do |node|
munin_node_list[node.attribute[:fqdn]] = node.attribute[:ipaddress]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment