Skip to content

Instantly share code, notes, and snippets.

@ktrysmt
Created September 24, 2018 13:04
Show Gist options
  • Save ktrysmt/2432d045cc7386ec225456240533679d to your computer and use it in GitHub Desktop.
Save ktrysmt/2432d045cc7386ec225456240533679d to your computer and use it in GitHub Desktop.
My general Vagrantfile at ubuntu/trusty64
Vagrant.configure(2) do |config|
def install_plugin(plugin)
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end
install_plugin('vagrant-share')
install_plugin('vagrant-vbguest')
install_plugin('vagrant-omnibus')
install_plugin('vagrant-cachier')
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
end
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "public_network"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.customize ['modifyvm', :id,
"--clipboard", "bidirectional",
"--draganddrop", "bidirectional",
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment