pyinfra.connectors.vagrant module

The @vagrant connector reads the current Vagrant status and generates an inventory for any running VMs.

# Run on all hosts
pyinfra @vagrant ...

# Run on a specific VM
pyinfra @vagrant/my-vm-name ...

# Run on multiple named VMs
pyinfra @vagrant/my-vm-name,@vagrant/another-vm-name ...
pyinfra.connectors.vagrant.get_vagrant_config(limit=None)
pyinfra.connectors.vagrant.get_vagrant_options()
pyinfra.connectors.vagrant.make_names_data(limit=None)