Sha256: 30acee8140b2a59b8ba6e5a4383e2b22489e223b67b48beebf8407601ee5df23

Contents?: true

Size: 797 Bytes

Versions: 2

Compression:

Stored size: 797 Bytes

Contents

Vagrant.configure("2") do |config|
  config.vm.box = "<%= node[:vagrant][:box] %>"

  <% if node[:vagrant][:ssh_username] %>
  config.ssh.username = "<%= node[:vagrant][:ssh_username] %>"
  <% end %>

  <% if node[:vagrant][:ssh_forward_agent] %>
  config.ssh.forward_agent = true
  <% end %>

  <% if node[:vagrant][:ssh_private_key_path] %>
  config.ssh.private_key_path = "<%= node[:vagrant][:ssh_private_key_path] %>"
  <% end %>

  config.vm.synced_folder ".", "/vagrant", :id => "vagrant-root", :disabled => true

  config.vm.provider :virtualbox do |virtualbox, override|
    override.vm.base_mac = "<%= node[:vagrant][:base_mac] %>"
    virtualbox.customize [ "modifyvm", :id, "--memory", "1024" ]
    virtualbox.customize [ "modifyvm", :id, "--cpus", "2" ]
  end
end

# vi: set ft=ruby :

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tvd-vagrant-0.0.26 cookbooks/vagrant/templates/default/Vagrantfile.virtualbox.erb
tvd-vagrant-0.0.25 cookbooks/vagrant/templates/default/Vagrantfile.virtualbox.erb