Skip to content

Instantly share code, notes, and snippets.

@indrakaw
Created June 22, 2019 04:45
Show Gist options
  • Save indrakaw/b7aa2035bec1926c84895351e0cbbad2 to your computer and use it in GitHub Desktop.
Save indrakaw/b7aa2035bec1926c84895351e0cbbad2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# You have to install "vagrant-vbguest" to get it works
# $ vagrant plugin install vagrant-vbguest
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "debian/stretch64"
config.vm.network "private_network", ip: "192.168.33.230"
config.vm.hostname = "webdev"
config.vm.provider :virtualbox do |vb|
vb.name = "debian stretch64"
vb.customize ["modifyvm", :id, "--memory", "768"]
end
config.vm.synced_folder "source", "/vagrant/source",
type: "virtualbox",
create: true,
id: "vagrant-root",
owner: "vagrant",
group: "www-data",
mount_options: ["dmode=775,fmode=775"]
config.vm.provision "shell", path: "bootstrap.sh", privileged: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment