小编L. *_*mek的帖子

在Chef中进行Git身份验证

在使用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资源的文档后,我无法看到您如何提供密钥文件进行身份验证.我也很困惑如何将这个密钥存储在数据包中,因为该文件包含一堆新行.有任何想法吗?

git ssh chef-infra

27
推荐指数
2
解决办法
1万
查看次数

标签 统计

chef-infra ×1

git ×1

ssh ×1