I started using this pattern to define attributes: https://github.com/opscode-cookbooks/jenkins/blob/master/attributes/default.rb