I'm writing a very simple chef cookbook to manage the deployment of a web app, and I have a chef managed node for the database server, and would like to bring in the IP address (and a few other attributes) from that database server, into the recipe running on the app server...
For instance, in the recipe checking out the code on the app server, something like this..
hostname = node[:myapp][:dbserver_hostname] attributes = chef_get_attributes_for_hostname(hostname) connect_to_mysql_at_ip = attributes[:ipaddress]
I'm not sure if this is something you can do in chef easily? Struggling to find documentation on it. Thanks!