# vi: set ft=ruby :
Vagrant.configure("2") do |config|
- config.vm.box = "precise64"
- config.vm.box_url = "http://files.vagrantup.com/precise64.box"
+ config.vm.box = "sputnik13/trusty64"
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.enable :apt
config.vm.network :forwarded_port, :guest => 3000, :host => 3000
# set up synced folder to source in /srv/openstreetmap-website
- config.vm.synced_folder ".", "/srv/openstreetmap-website"
+ config.vm.synced_folder ".", "/srv/openstreetmap-website",
+ :rsync__exclude => ["config/application.yml", "config/database.yml"]
# provision using a simple shell script
config.vm.provision :shell, :path => "script/vagrant/setup/provision.sh"
# make sure we have up-to-date packages
apt-get update
-## vagrant grub-pc fix from: https://gist.github.com/jrnickell/6289943
-# parameters
-echo "grub-pc grub-pc/kopt_extracted boolean true" | debconf-set-selections
-echo "grub-pc grub2/linux_cmdline string" | debconf-set-selections
-echo "grub-pc grub-pc/install_devices multiselect /dev/sda" | debconf-set-selections
-echo "grub-pc grub-pc/install_devices_failed_upgrade boolean true" | debconf-set-selections
-echo "grub-pc grub-pc/install_devices_disks_changed multiselect /dev/sda" | debconf-set-selections
-# vagrant grub fix
-dpkg-reconfigure -f noninteractive grub-pc
-
# upgrade all packages
apt-get upgrade -y