Vagrant Molecule Plugin :: run molecule tests using Vagrant
Project description
Molecule Vagrant is designed to allow use of Vagrant for provisioning of test resources.
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.
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.
Source Distribution
Built Distribution
File details
Details for the file molecule-vagrant-0.3.tar.gz
.
File metadata
- Download URL: molecule-vagrant-0.3.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94b9aec5b1c7b499f549539bdd8d73c74afcce0a20776efd82f3f4ebae40ca98 |
|
MD5 | 814c3790c3b6bd7eed2b85859645d049 |
|
BLAKE2b-256 | 02a924dd64f6b20ddaf795f2e0f851f183da8103ad205736495f0b6381c1c291 |
File details
Details for the file molecule_vagrant-0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: molecule_vagrant-0.3-py2.py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fcacbb9544e2736ce206a01c72f25cf74cbfe147df1722930d0373d87499907 |
|
MD5 | 8b09d6f41671408b3364007fb4099eec |
|
BLAKE2b-256 | 3d56852058f9a78b649f70fe170c9d49497bc1e78ad1c855a2bc3a758d495397 |