Skip to content

Instantly share code, notes, and snippets.

@damm
Created Aug 28, 2009
Embed
What would you like to do?
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