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.
This commit is contained in:
Tim Kuhlman 2014-02-27 15:40:24 -07:00
parent 0df3cf68fd
commit a982b3abe9
2 changed files with 8 additions and 21 deletions

View File

@ -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 <http://some-proxy.foo.com:8088> 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:
```

12
Vagrantfile vendored
View File

@ -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'