如何启用berkshelf访问Subversion存储库?

时间:2014-09-25 20:22:11

标签: chef berkshelf berksfile

我在顶级Chef repo目录中有以下Berksfile。

source "https://www.mySVNrepo.com/repos/myproject/trunk"

cookbook 'helloworld',      '= 0.1.0'

当我安装berks时,我得到了

[root@chef trunk]# berks install
Resolving cookbook dependencies...
Fetching cookbook index from https://www.mySVNrepo/repos/myproject/trunk...
/opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:800:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError)
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:800:in `block in connect'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/timeout.rb:69:in `timeout'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/timeout.rb:100:in `timeout'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:800:in `connect'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:756:in `do_start'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:745:in `start'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:1285:in `request'
        from /opt/chef-server/embedded/lib/ruby/1.9.1/net/http.rb:1027:in `get'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:78:in `perform_request'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:39:in `call'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/request/retry.rb:87:in `call'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/response.rb:8:in `call'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:139:in `build_response'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in `run_request'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/faraday-0.9.0/lib/faraday/connection.rb:140:in `get'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/berkshelf-api-client-1.2.0/lib/berkshelf/api_client/connection.rb:62:in `universe'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/berkshelf-3.1.4/lib/berkshelf/source.rb:22:in `build_universe'
        from /opt/chef-server/embedded/lib/ruby/gems/1.9.1/gems/berkshelf-3.1.4/lib/berkshelf/installer.rb:21:in `block (2 levels) in build_universe'

如何告诉Berkshelf使用某个用户/ pw访问我的SVN回购?它甚至支持吗?

1 个答案:

答案 0 :(得分:0)

您的HTTPS证书无法验证。您可以告诉Berkshelf不通过--no-ssl-verify验证证书或修复您的证书。推荐后者。