【发布时间】:2013-12-26 12:43:15
【问题描述】:
在使用 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
但是,在扫描git 资源的文档后,我看不到您如何提供用于身份验证的密钥文件。我也对如何将此密钥存储在数据包中感到困惑,因为该文件包含一堆新行。有什么想法吗?
【问题讨论】:
-
我已经详细说明了工作流程here
标签: git ssh chef-infra