在使用Chef部署应用程序时,我已经使用以下资源从私有github存储库中克隆了代码库:
git '/mnt/application' do
repository 'git@github.com:organization/repository'
reference 'master'
action :sync
user node.application.user
group node.application.user
end
Run Code Online (Sandbox Code Playgroud)
但是,在扫描git
资源的文档后,我无法看到您如何提供密钥文件进行身份验证.我也很困惑如何将这个密钥存储在数据包中,因为该文件包含一堆新行.有任何想法吗?