Sha256: b5a69a1f8876180b7407beb5ee70876b2028606044efde183c6091448517fb9b

Contents?: true

Size: 712 Bytes

Versions: 1

Compression:

Stored size: 712 Bytes

Contents

require "vagrant-shell"
require "vagrant-shell/ssh-agent"

VagrantPlugins::Shell::Plugin.make_provider(:static)

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_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 :static do |static|
    static.image =  "<%= node[:vagrant][:image] %>"
    static.script = static.find_script(:static)
  end
end

# vi: set ft=ruby :

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tvd-vagrant-0.0.24 cookbooks/vagrant/templates/default/Vagrantfile.static.erb