Chef infra 设置流浪VM';厨师的代理人

Chef infra 设置流浪VM';厨师的代理人,chef-infra,vagrant,chef-recipe,chef-solo,Chef Infra,Vagrant,Chef Recipe,Chef Solo,我已经建立了一个非常基本的基础设施,其中包含一个工作站、一个opscode托管的chef服务器和一个vagrant VM节点 在我的工作站上,我使用命令vagrant up。这下载了vagrant VM以设置节点。但是,流浪的VM节点无法连接到Internet。如何更改虚拟机的代理设置?您可以使用该插件: 然后使用$HOME/.vagrant.d/Vagrantfile为所有虚拟机配置它。例如: Vagrant.configure("2") do |config| config.proxy.

我已经建立了一个非常基本的基础设施,其中包含一个工作站、一个opscode托管的chef服务器和一个vagrant VM节点

在我的工作站上,我使用命令
vagrant up
。这下载了vagrant VM以设置节点。但是,流浪的VM节点无法连接到Internet。如何更改虚拟机的代理设置?

您可以使用该插件:

然后使用
$HOME/.vagrant.d/Vagrantfile
为所有虚拟机配置它。例如:

Vagrant.configure("2") do |config|
  config.proxy.http     = "http://192.168.0.2:3128/"
  config.proxy.https    = "http://192.168.0.2:3128/"

  # exclude your internal networks, including the Vagrant ones
  config.proxy.no_proxy = "localhost,127.0.0.1,192.168.33.*,.example.com"
end

尝试使用vagrant proxyconf插件为包管理器和shell设置代理。您能详细说明一下吗?
Vagrant.configure("2") do |config|
  config.proxy.http     = "http://192.168.0.2:3128/"
  config.proxy.https    = "http://192.168.0.2:3128/"

  # exclude your internal networks, including the Vagrant ones
  config.proxy.no_proxy = "localhost,127.0.0.1,192.168.33.*,.example.com"
end