How can I get IP address returned by node search in chef recipe (ruby).
dbnodes = search(:node, "role:Db")
Chef::Log.info(dbnodes.first["ipaddress"]) # nil
Few weeks ago this code returned IP of first instance from search API.
version: Chef: 10.14.2