2015-10-13 3 views
2

Я работаю над ограничительной прокси-сетью, и в настоящее время у меня работает бродяга, работающая на ноутбуке. Я должен был использовать прокси-плагин, и мне пришлось установить его из моей рабочей сети.Как установить прокси-плагин за прокси-сервером для бродяг

Я сейчас на рабочем столе - где это невозможно (на окнах), и я пытаюсь настроить бродягу. Команда, которую я подозреваю, что я должен набираться:

vagrant plugin install --plugin-source http://rubygems.org vagrant-proxyconf

Который сообщает:

Installing the 'vagrant-proxyconf' plugin. This can take a few minutes... 
Bundler, the underlying system Vagrant uses to install plugins, 
reported an error. The error is shown below. These errors are usually 
caused by misconfigured plugin installations or transient network 
issues. The error from Bundler is: 

Could not fetch specs from http://gems.hashicorp.com/ 

Warning: this Gemfile contains multiple primary sources. Using `source` 
more than once without a block is a security risk, and may result in 
installing unexpected gems. To resolve this warning, use a block to 
indicate which gems should come from the secondary source. To upgrade 
this warning to an error, run `bundle config disable_multisource true`. 

Я предполагаю, что это связано с вопросом прокси. Я пытался как cmd и PowerShell, а также делать

set http_proxy=xxxxx:80

Есть предложения? Я был бы рад сделать ручную установку, если это возможно.

Спасибо!

+0

ли вы выяснить, как это сделать, если да, то пожалуйста, вы можете поделиться здесь? –

ответ

2

Вам необходимо установить переменные среды прокси-сервера в хост-машину Vagrant, чтобы он знал, как загрузить плагин.

Например:

$ export http_proxy=http://192.0.2.1:3128 
$ export https_proxy=http://192.0.2.1:3128 

$ env | grep http # just checking 
http_proxy=http://192.0.2.1:3128 
https_proxy=http://192.0.2.1:3128 

$ vagrant plugin install vagrant-proxyconf 
Installing the 'vagrant-proxyconf' plugin. This can take a few minutes... 
Installed the plugin 'vagrant-proxyconf (1.5.2)'! 
Смежные вопросы