Sha256: e0444e239f53c81fc65b4d71606292d0805209d9352209f00b4e851eecf288bd
Contents?: true
Size: 853 Bytes
Versions: 3
Compression:
Stored size: 853 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_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] %>" <% else %> config.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
3 entries across 3 versions & 1 rubygems