HitchVagrant

Note

This documentation applies to the latest version of hitchvagrant.

Installation

If it is not already installed, install the hitch vagrant package:

$ hitch install hitchvagrant

Setup

Note

See also: Generic Service API

To use, define the service after initializing the Service Bundle:

Like so:

import hitchvagrant

# Service definition in engine's setUp:
self.services['MyVM'] = hitchvagrant.VagrantService(
    directory="vagrantubuntu/",     # Directory containing Vagrantfile (optional)
)

Interaction

Once it is running, you can run ssh commands against the machine:

In [1]: self.services['MyVM'].ssh("pwd").run()
/vagrant