title: Access a Chef data bag from an attributes file
body: <p>Is there a way to access a Chef data bag from within the <code>default.rb</code> attributes file?</p>
  
  <p>My use case is I need to represent a collection of operating system environment variables as a hash of attributes which are ultimately passed through to a template. Some of these environment variables are credentials that I'm storing in an encrypted data bag. Unfortunately Chef won't let me access the recipe DSL from within the attributes file, so the <code>data_bag_item</code> method I'd normally use isn't available.</p>
  
  <p>Thanks in advance.</p>