Skip to content

Instantly share code, notes, and snippets.

@damm
Created August 28, 2009 01:25
Show Gist options
  • Save damm/176717 to your computer and use it in GitHub Desktop.
Save damm/176717 to your computer and use it in GitHub Desktop.
keys = []
search(:node, "*") do |server|
server['keys_ssh_host_rsa_public'].each do |x|
Chef::Log.debug("SSH RSA Key #{x}")
my_host_rsa_public << x
end
server['ipaddress'].each do |y|
Chef::Log.debug("IP Address #{y}")
my_host_ip << y
end
server['fqdn'].each do |z|
Chef::Log.debug("FQDN #{z}")
my_fqdn << z
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment