require "vagrant-shell" VagrantPlugins::Shell::Plugin.make_provider(:docker) 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 :docker do |docker, override| docker.script = docker.find_script(:docker) docker.run_args = [ "<%= node[:vagrant][:shell_args] %>" ] end end # vi: set ft=ruby :