Skip to main content

Molecule Vagrant Plugin

PyPI Package https://zuul-ci.org/gated.svg 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.

Supported Platforms

This driver relies on vagrant command line which is known to be problematic to install on several platforms. We do our best to perform CI/CD testing on multiple platforms but some are disabled due to known bugs.

  • ✅ MacOS with VirtualBox - GitHub Actions

  • ✅ Fedora 32 with libvirt - Zuul

  • ✅ Ubuntu Bionic (18.04) with libvirt - Zuul

  • ❌ CentOS 8 with libvirt - Zuul DISABLED due to 1127 and 11020

Please do not file bugs for unsupported platforms. You are welcomed to create PRs that fix untested platform, as long they do not break existing ones.

Documentation

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:

driver:
  name: vagrant

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

Here’s a full example with the libvirt provider:

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

platforms:
  - name: instance
    # List of dictionaries mapped to `config.vm.network`
    interfaces:
      # `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
    instance_raw_config_args:
      - 'vagrant.plugins = ["vagrant-libvirt"]'
    # Dictionary of `config` options. Note that string values need to be
    # explicitly enclosed in quotes.
    config_options:
      ssh.keep_alive: yes
      ssh.remote_user: "'vagrant'"
    box: fedora/32-cloud-base
    box_version: 32.20200422.0
    box_url:
    memory: 512
    cpus: 1
    # Dictionary of options passed to the provider
    provider_options:
      video_type: "'vga'"
    # List of raw provider options
    provider_raw_config_args:
      - "cpuset = '1-4,^3,6'"
    provision: no

Get Involved

Authors

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

License

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.

Metadata

Release files for molecule-vagrant 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for molecule-vagrant 0.6
File Size Uploaded
molecule-vagrant-0.6.tar.gz 27.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for molecule-vagrant 0.6
File Interpreter ABI Platform
molecule_vagrant-0.6-py3-none-any.whl Python 3 none any Details

Total release size: 53.5 kB

Release files / molecule-vagrant-0.6.tar.gz

Download URL molecule-vagrant-0.6.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
81fb401ffc5c4a1f5ff84e9a90ded4ecf3e8361db44b7e60e7745afb42db1273
BLAKE2b-256 checksum
How to use checksums
fab6eaaf1ec5a9337d2498db3e41d09a8742035dbda9c61b283df4d8abb50ef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

Release files / molecule_vagrant-0.6-py3-none-any.whl

Download URL molecule_vagrant-0.6-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a1b3dd4830aa2b906492b9633c4842ff40c767dd4ff6b2035a6efbe5ccf9b0b
BLAKE2b-256 checksum
How to use checksums
2269f0be14c87cd5d323164bfa2d5cd0357d49d9447b2d0d0d6f6d088f860da5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

Release history Release notifications | RSS feed

2.0.0

2 release files

1.0.0

2 release files

0.6.3

2 release files

0.6.1

2 release files

This release

0.6 This release

2 release files

0.5

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page