Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Created August 5, 2010 22:53
Show Gist options
  • Save ripienaar/510541 to your computer and use it in GitHub Desktop.
Save ripienaar/510541 to your computer and use it in GitHub Desktop.
<%=
nodes = Puppet::Util::MongoQuery.instance.find_nodes({"facts.customer" => "rip"})
nodes.map do |node|
"%s: %s" % [node["hostname"],
node["facts"]["operatingsystem"]]
end.join("\n")
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment