From a982b3abe9346938ae9b6e47a1b3b39bcb69d4ce Mon Sep 17 00:00:00 2001 From: Tim Kuhlman Date: Thu, 27 Feb 2014 15:40:24 -0700 Subject: [PATCH] Clarified the proxy section The vagrant proxy plugin will set the proxy within the vms and for apt affects all repos. At this point all packages are from the HPCloud apt repos and so setting an apt proxy breaks things. --- README.md | 17 ++++++++--------- Vagrantfile | 12 ------------ 2 files changed, 8 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 322c9fc..2dcfecb 100644 --- a/README.md +++ b/README.md @@ -9,26 +9,25 @@ git clone https://git.hpcloud.net/mon/mini-mon.git ``` ## Setup Vagrant -Assumes you have home homebrew installed. + +### Install Vagrant +Assumes you have home homebrew installed, if not download and install VirtualBox and Vagrant from their websites then continue with Setup Berkshelf. ``` brew tap phinze/cask brew install brew-cask brew cask install virtualbox brew cask install vagrant +``` + +### Setup Berkshelf +``` vagrant plugin install vagrant-berkshelf gem install berkshelf or gem install --http-proxy berkshelf ``` -If you are behind a proxy you can install the `vagrant-proxyconf` pluging to have Vagrant honor any proxy-related -environment variables that are set. Note that this is all or nothing with this set all apt repositories use the proxy.: - -``` -vagrant plugin install vagrant-proxyconf -``` - ## Start mini-mon - +Berkshelf will download some cookbooks from the community so http_proxy and https_proxy environment variables must be set if applicable. From within the `mini-mon` directory, run: ``` diff --git a/Vagrantfile b/Vagrantfile index bdd2947..19f73c0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,18 +10,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.synced_folder "~/", "/vagrant_home" config.berkshelf.enabled = true - # Handle local proxy settings - if Vagrant.has_plugin?("vagrant-proxyconf") - if ENV["http_proxy"] - config.proxy.http = ENV["http_proxy"] - config.proxy.no_proxy = ENV["no_proxy"] - end - if ENV["https_proxy"] - config.proxy.https = ENV["https_proxy"] - config.proxy.no_proxy = ENV["no_proxy"] - end - end - # VM specific settings config.vm.define "kafka" do |kafka| kafka.vm.hostname = 'kafka'