title: Git authentication in Chef
body: <p>When deploying an application with Chef, I've got the code base set to be cloned from a private github repository with the following resource:</p>
  
  <pre><code>git '/mnt/application' do
      repository 'git@github.com:organization/repository'
  
      reference 'master'
      action :sync
  
      user node.application.user
      group node.application.user
  end
  </code></pre>
  
  <p>However, after scanning the documentation for the <code>git</code> resource, I can't see how you supply the key file for authentication. I'm also confused as to how to store this key in a data bag, as the file contains a bunch of new lines. Any ideas?</p>