# -*- mode: ruby -*- # vi: set ft=ruby : 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" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs # `vagrant box outdated`. This is not recommended. # config.vm.box_check_update = false # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. # config.vm.network "forwarded_port", guest: 80, host: 8080 # 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" # Provider-specific configuration so you can fine-tune various # backing providers for Vagrant. These expose provider-specific options. # Example for VirtualBox: config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine # vb.gui = true # # # Customize the amount of memory on the VM: vb.memory = "2048" vb.cpus = "2" end config.berkshelf.enabled = true config.berkshelf.berksfile_path = '../Berksfile' 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 "./config.json")) end end