Skip to content

Instantly share code, notes, and snippets.

@xpix
Created February 15, 2016 09:06
Show Gist options
  • Save xpix/f18f6a285e2cc9ff42b8 to your computer and use it in GitHub Desktop.
Save xpix/f18f6a285e2cc9ff42b8 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
#vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "mdevstack"
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
if Vagrant.has_plugin?("vagrant-proxyconf")
if ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
config.proxy.no_proxy = "localhost,127.0.0.1,192.168.33.20,192.168.33.1,10.0.2.15"
end
config.vm.network "private_network", ip: "192.168.33.20"
config.vm.network "public_network"
config.ssh.forward_agent = true
#config.vm.synced_folder "/Users/d065272/git", "/git", type: "nfs"
#config.nfs.map_uid = Process.uid
#config.nfs.map_gid = Process.gid
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "6144"]
vb.customize ["modifyvm", :id, "--cpus", "3"]
end
config.vm.provision :shell do |shell|
shell.path = "install.sh"
end
# config.vm.provision :file do |file|
# file.source = "files/Fedora-x86_64-20-20140618-sda.qcow2"
# file.destination = "/home/vagrant/devstack/files/Fedora-x86_64-20-20140618-sda.qcow2"
# end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment