Adding shell support is probably the easiest solution, at a low cost, which it runs on a virtual machine through SSH.
Another option is to use the vagrant-host-shell plugin :
Vagrant.configure('2') do |config|
config.vm.provision :host_shell, inline: 'echo "Provisioned!"'
end
, Vagrantfile.;)
class EchoPlugin < Vagrant.plugin('2')
class EchoAction
def initialize(app, env)
@app = app
end
def call(env)
@app.call(env)
puts "Provisioned!"
end
end
name 'echo'
action_hook 'echo' do |hook|
hook.before Vagrant::Action::Builtin::Provision, EchoAction
end
end
Vagrant.configure('2') do |config|
end