I have a use case where I occasionally want to copy a single file from my host machine to the Vagrant guest.
I don\'t want to do so via traditional provisioners (Pup
Instead of using a shell provisioner to copy the file, you can also use a Vagrant file provisioner.
Provisioner name:
"file"
The file provisioner allows you to upload a file from the host machine to the guest machine.
Vagrant.configure("2") do |config|
# ... other configuration
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
end