Skip to main content

Vagrant Molecule Plugin :: run molecule tests using Vagrant

Project description

PyPI Package Python Black Code Style Ansible Code of Conduct Ansible mailing lists Repository License

Molecule Vagrant is designed to allow use of Vagrant for provisioning of test resources.


To use this plugin, you’ll need to set the driver and platform variables in your molecule.yml. Here’s a simple example using the fedora/32-cloud-base box:

  name: vagrant

  - name: instance
    box: fedora/32-cloud-base
    memory: 512
    cpus: 1

Here’s a full example with the libvirt provider:

  name: vagrant
    # Can be any supported provider (VBox, Parallels, libvirt, etc)
    name: libvirt

  - name: instance
    # List of dictionaries mapped to ``
      # `network_name` is the required identifier, all other keys map to
      # arguments.
      - network_name: forwarded_port
        guest: 80
        host: 8080
    # List of raw Vagrant `config` options
      - 'vagrant.plugins = ["vagrant-libvirt"]'
    # Dictionary of `config` options. Note that string values need to be
    # explicitly enclosed in quotes.
      ssh.keep_alive: yes
      ssh.remote_user: "'vagrant'"
    box: fedora/32-cloud-base
    box_version: 32.20200422.0
    memory: 512
    cpus: 1
    # Dictionary of options passed to the provider
      video_type: "'vga'"
    # List of raw provider options
      - "cpuset = '1-4,^3,6'"
    provision: no

Get Involved


Molecule Vagrant Plugin was created by Sorin Sbarnea based on code from Molecule.


The MIT License.

The logo is licensed under the Creative Commons NoDerivatives 4.0 License.

If you have some other use in mind, contact us.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

molecule-vagrant-0.3.tar.gz (20.1 kB view hashes)

Uploaded Source

Built Distribution

molecule_vagrant-0.3-py2.py3-none-any.whl (25.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page