【发布时间】:2014-07-29 19:09:01
【问题描述】:
我正在我的厨师食谱中运行以下远程文件命令。我无法让它使用代理。 git 命令将使用代理,其他任何东西都将使用代理,但使用 remote file 时会失败
remote_file "Fetch the latest ca-bundle" do
source "http://curl.haxx.se/ca/cacert.pem"
path "/opt/local/etc/certs/cacert.pem"
owner "git"
group "git"
mode 0755
action :create
end
错误:
Error connecting to http://curl.haxx.se/ca/cacert.pem - getaddrinfo: Name or service not known
我的代理设置了以下环境变量
HTTP_PROXY
HTTPS_PROXY
http_proxy
https_proxy
有没有办法在命令中定义代理?
【问题讨论】:
标签: proxy chef-infra cookbook