Chef infra 有没有办法让Berkshelf停止向Chef服务器上传烹饪书?

Chef infra 有没有办法让Berkshelf停止向Chef服务器上传烹饪书?,chef-infra,berkshelf,Chef Infra,Berkshelf,我正在使用Chef Server来设置我的vagrant box,我的vagrant文件如下所示 Vagrant.configure("2") do |config| config.vm.box = 'CentOS-7.1-64' config.vm.box_url = 'https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.bo

我正在使用Chef Server来设置我的vagrant box,我的vagrant文件如下所示

Vagrant.configure("2") do |config|
  config.vm.box = 'CentOS-7.1-64'
  config.vm.box_url = 'https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box'

  config.omnibus.chef_version = :latest

  config.berkshelf.enabled = true
  config.berkshelf.berksfile_path = './Berksfile'

  config.vm.provision :chef_client do |chef|
    chef.provisioning_path = "/etc/chef"
    chef.chef_server_url = "https://api.opscode.com/organizations/myorg"
    chef.validation_key_path = ".chef/myorg-validator.pem"
    chef.validation_client_name = "myorg-validator"
    chef.node_name = "vagrant_dev"
    chef.add_role ENV['CHEF_ROLE']
    chef.environment = ENV['CHEF_ENV']
  end
end
每次我设置我的箱子时,它都会将所有内容重新上传到服务器

==> default: Uploading cookbooks to https://api.opscode.com/organizations/myorg

这通常需要一段时间。如果已经存在烹饪书,有没有办法不上传它们?

虽然这不能回答您的问题,但我通常在本地使用chef solo或chef zero,因此我不会将“流浪者盒子”加入我的主厨帐户。当我以这种方式经营“流浪者”时,Berkshelf仍然将我所有的食谱复制给“流浪者”。我不确定是否有一种简单的方法可以关闭此行为,因为它是Berkshellf的主要功能之一(除了解决依赖项之外,您最想做的就是使用它们)。@Martin是的,我现在就用它。谢谢