Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Vagrant Hostmanager | 1,450 | 7 | 1 | 2 years ago | 35 | May 18, 2018 | 71 | mpl-2.0 | Ruby | |
:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment. | ||||||||||
Vagrant Lamp | 770 | 4 years ago | 29 | Ruby | ||||||
My default LAMP development stack for Vagrant | ||||||||||
Netplugin | 473 | 4 years ago | 37 | May 24, 2021 | 152 | apache-2.0 | Go | |||
Container networking for various use cases | ||||||||||
Magento2 Vagrant For Developers | 448 | 4 years ago | 46 | mit | Shell | |||||
Vagrant Box for Magento 2 Developers | ||||||||||
Socketplane | 409 | 4 years ago | December 26, 2014 | 36 | apache-2.0 | Go | ||||
SocketPlane - Multi-Host Container Networking | ||||||||||
Ansible Jenkins | 276 | 6 years ago | 10 | mit | Groovy | |||||
Ansible playbook: Jenkins | ||||||||||
Vvv Dashboard | 264 | 5 years ago | 17 | PHP | ||||||
Dashboard for Varying Vagrant Vagrants https://github.com/Varying-Vagrant-Vagrants/VVV | ||||||||||
Vagrant Django Template | 246 | 7 years ago | other | Python | ||||||
Skeleton project for a Django app running under Vagrant | ||||||||||
Vagrant Gatling Rsync | 240 | 2 years ago | 16 | mit | Ruby | |||||
An rsync watcher for Vagrant 1.5.1+ that uses fewer host resources. | ||||||||||
Vagrant Sshfs | 219 | 6 | 9 months ago | 20 | May 03, 2021 | 20 | gpl-2.0 | Ruby | ||
SSHFS synced folder implementation for Vagrant. |
a vagrant provisioner to run commands on the host when a VM boots.
simple example based on question asked on vagrant mailing list
Install as a plugin:
vagrant plugin install vagrant-host-shell
Add this to Vagrantfile
:
config.vm.provision :host_shell do |host_shell|
host_shell.inline = 'touch /tmp/hostshell-works && echo hello from the host && hostname 1>&2'
end
Run vagrant up
(or vagrant provision
if machine is already running.)
Observe that /tmp/hostshell-works
is present on your host, and that the provisioner output:
[stdout] hello from the host
[stderr] (your host's hostname)