Vagrant Host Shell

simple vagrant provisioner that executes commands on the host
Alternatives To Vagrant Host Shell
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Vagrant Hostmanager1,450712 years ago35May 18, 201871mpl-2.0Ruby
:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Vagrant Lamp770
4 years ago29Ruby
My default LAMP development stack for Vagrant
Netplugin473
4 years ago37May 24, 2021152apache-2.0Go
Container networking for various use cases
Magento2 Vagrant For Developers448
4 years ago46mitShell
Vagrant Box for Magento 2 Developers
Socketplane409
4 years agoDecember 26, 201436apache-2.0Go
SocketPlane - Multi-Host Container Networking
Ansible Jenkins276
6 years ago10mitGroovy
Ansible playbook: Jenkins
Vvv Dashboard264
5 years ago17PHP
Dashboard for Varying Vagrant Vagrants https://github.com/Varying-Vagrant-Vagrants/VVV
Vagrant Django Template246
7 years agootherPython
Skeleton project for a Django app running under Vagrant
Vagrant Gatling Rsync240
2 years ago16mitRuby
An rsync watcher for Vagrant 1.5.1+ that uses fewer host resources.
Vagrant Sshfs219
69 months ago20May 03, 202120gpl-2.0Ruby
SSHFS synced folder implementation for Vagrant.
Alternatives To Vagrant Host Shell
Select To Compare


Alternative Project Comparisons
Readme

vagrant-host-shell plugin

a vagrant provisioner to run commands on the host when a VM boots.

simple example based on question asked on vagrant mailing list

example usage

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)
Popular Hosts Projects
Popular Vagrant Projects
Popular Networking Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Ruby
Shell
Plugin
Hosts
Vagrant