fabtools.vagrant

Vagrant helpers

fabtools.vagrant.vagrant()[source]

Run the following tasks on a vagrant box.

First, you need to import this task in your fabfile.py:

from fabric.api import *
from fabtools.vagrant import vagrant

@task
def some_task():
    run('echo hello')

Then you can easily run tasks on your current Vagrant box:

$ fab vagrant some_task
fabtools.vagrant.ssh_config(name='')[source]

Get the SSH parameters for connecting to a vagrant VM.

fabtools.vagrant.vagrant[source]

Run the following tasks on a vagrant box.

First, you need to import this task in your fabfile.py:

from fabric.api import *
from fabtools.vagrant import vagrant

@task
def some_task():
    run('echo hello')

Then you can easily run tasks on your current Vagrant box:

$ fab vagrant some_task
fabtools.vagrant.vagrant_settings(name='', *args, **kwargs)[source]

Context manager that sets a vagrant VM as the remote host.

Use this context manager inside a task to run commands on your current Vagrant box:

from fabtools.vagrant import vagrant_settings

with vagrant_settings():
    run('hostname')
Read the Docs v: 0.16.0
Versions
latest
0.16.0
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.