Vagrant Molecule Plugin :: run molecule tests using Vagrant
Project description
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
- Join us in the #ansible-molecule channel on Freenode.
- Join the discussion in molecule-users Forum.
- Join the community working group by checking the wiki.
- Want to know about releases, subscribe to ansible-announce list.
- For the full list of Ansible email Lists, IRC channels see the communication page.
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size molecule_vagrant-0.6.1-py3-none-any.whl (26.3 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size molecule-vagrant-0.6.1.tar.gz (27.3 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for molecule_vagrant-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb32d0e8b8d1def6af2589fbdadc2d982a3cba306cdd0a5ed06506ed8c2a3125 |
|
MD5 | bc8149b9f7890be7ae7d18854c7bc111 |
|
BLAKE2-256 | 7610aede91d84571fcc468ff972160a297dad8ee18ead026851079092153df6d |