# -*- mode: ruby -*- # vi: set ft=ruby : # rubocop:disable LineLength # plugins don't seem to be auto-loaded from the bundle require 'vagrant-omnibus' require 'vagrant-windows' Vagrant.configure('2') do |config| config.vm.define :new_chef do |new_chef_config| new_chef_config.vm.box = 'opscode-ubuntu-12.04' new_chef_config.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-12.04_chef-provisionerless.box' new_chef_config.omnibus.chef_version = :latest new_chef_config.vm.provision :chef_solo do |chef| chef.cookbooks_path = File.expand_path('../../../support/cookbooks', __FILE__) chef.add_recipe 'chef-inator' end end config.vm.define :old_chef do |old_chef_config| old_chef_config.vm.box = 'opscode-centos-6.5' old_chef_config.vm.box_url = 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box' old_chef_config.omnibus.chef_version = '10.24.0' old_chef_config.vm.provision :chef_solo do |chef| chef.cookbooks_path = File.expand_path('../../../support/cookbooks', __FILE__) chef.add_recipe 'chef-inator' end end config.vm.define :chef_already_installed do |installed_config| installed_config.vm.box = 'opscode-ubuntu-12.04-chef-11.4.4' installed_config.vm.box_url = 'https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.4.4.box' installed_config.omnibus.chef_version = '11.4.4' installed_config.vm.provision :chef_solo do |chef| chef.cookbooks_path = File.expand_path('../../../support/cookbooks', __FILE__) chef.add_recipe 'chef-inator' end end config.vm.define :chef_on_windows do |win_config| win_config.vm.box = 'opscode-windows-6.1' win_config.vm.box_url = 'http://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-windows-6.1.box' win_config.vm.boot_timeout = 500 win_config.omnibus.chef_version = :latest win_config.vm.network :forwarded_port, guest: 3389, host: 3389 win_config.vm.network :forwarded_port, guest: 5985, host: 5985 win_config.vm.guest = :windows win_config.winrm.timeout = 500 win_config.vm.provision :chef_solo do |chef| chef.cookbooks_path = File.expand_path('../../../support/cookbooks', __FILE__) chef.add_recipe 'chef-inator' end end end