config.vm.synced_folder ".", "/home/vagrant/Downloads/"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
vb.name = "Cassandra-4.0-Vagrant"
config.trigger.after :up do |trigger|
trigger.name = "execute script"
trigger.info = "running multiple commands within the script"
trigger.run = {path: "sh launch-cassandra.sh" }
end
end
There are errors in the configuration of this machine. Please fix
the following errors and try again:
trigger:
* `path` for shell provisioner does not exist on the host system:
Also since this file which i am trying to execute on Guest OS, exists in the Download section with the path as /home/vagrant/Downloads (which i have already mentioned in the start), after login into guest os using vagrant ssh command and executing directly , it is running successfully.
Kindly provide me the solution to execute this scripts while executing command vagrant reload