my application cookbooks define attribute like this which define node data in the node['sk_services']
namespace which is designed to be searchable by other nodes and give information (in this case information that an nginx proxy needs to know).
% cat attributes/default.rb
default['sk_services']['www.visibility-project.com']['normal_port'] = 80
default['sk_services']['www.visibility-project.com']['ssl_port'] = 443
default['sk_services']['www.visibility-project.com']['listen_port'] = 8080
default['sk_services']['www.visibility-project.com']['cache_dirs'] = [
'assets',
]