# -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The '2' in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure(2) do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search. config.vm.box = 'debian/jessie64' # config.vm.box = 'debian_jessie_jdk' # Create a private network, which allows host-only access to the machine # using a specific IP. config.vm.network 'private_network', ip: '33.33.33.11' config.vm.provider 'virtualbox' do |vb| vb.memory = '4096' vb.cpus = '2' # change the network card hardware for better performance vb.customize ['modifyvm', :id, '--nictype1', 'virtio'] vb.customize ['modifyvm', :id, '--nictype2', 'virtio'] # suggested fix for slow network performance # see https://github.com/mitchellh/vagrant/issues/1807 vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on'] vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on'] end # Virtualbox guest addition update config.vbguest.auto_update = true # Enabling the Berkshelf plugin. config.berkshelf.berksfile_path = "Berksfile" config.berkshelf.enabled = true config.vm.provision :chef_solo do |chef| # Specify the local paths where Chef data is stored chef.cookbooks_path = ['cookbooks'] chef.data_bags_path = 'data_bags' chef.nodes_path = 'nodes' chef.roles_path = 'roles' chef.log_level = 'warn' chef.json = JSON.parse( # File.read(File.expand_path './nodes/33.33.33.11.json')) File.read(File.expand_path './nodes/gazelle.sequoiaproject.org.json')) end end