Skip to content

Instantly share code, notes, and snippets.

@bbonamin
Created May 9, 2014 19:30
Show Gist options
  • Save bbonamin/d36cc610d935161ef04e to your computer and use it in GitHub Desktop.
Save bbonamin/d36cc610d935161ef04e to your computer and use it in GitHub Desktop.
Vagrant VM with access to host VPN
Vagrant::Config.run do |config|
config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
config.vm.network :hostonly, "192.168.56.101"
config.vm.box = "base-hadoop"
config.vm.customize ["modifyvm", :id, "--memory", 1024, "--cpus", "1"]
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "base-hadoop.pp"
puppet.module_path = "modules"
end
config.vm.define :master do |master_config|
master_config.vm.host_name = "master"
master_config.vm.forward_port 50070, 50070
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment