For running a command in a different machine that triggered the trigger I'm resorting to:
config.trigger.after :up, :vm => ['ubuntu'] do
run "vagrant ssh -c 'cat /vagrant/tmp/*.ssh_known_hosts | sudo tee /etc/ssh/ssh_known_hosts' jenkins"
end
But it would be really nice to be able to call run_remote on a given machine, in my case, on the jenkins machine.
For running a command in a different machine that triggered the trigger I'm resorting to:
But it would be really nice to be able to call
run_remote
on a given machine, in my case, on thejenkins
machine.