Molecule aids in the development and testing of Ansible roles
Project description
Molecule KubeVirt Plugin is designed to allow use of KubeVirt containers for provisioning test resources.
Very alpha version - All configuration fields and behaviours may be subject to breaking changes
Scope
Molecule-kubevirt enables running ansible roles tests in a kubernetes cluster.
Usage
To use this plugin, you’ll need to set the driver and platform variables in your molecule.yml. Here’s a simple example using a home made centos docker image for KubeVirt:
driver:
name: kubevirt
platforms:
- name: instance
image: quay.io/jseguillon/kubevirt-images:centos-7-x86_64-genericcloud-2009
This driver also requires molecule to access Kubernetes API. See test-rolebinding file.
Installation
Ansible
This driver supports Ansible 2, 3 and 4.
Ansible 2 requires install of comunity.kubevirt plus strict python requirements pinning:
ansible-galaxy install git+https://github.com/ansible-collections/community.general.git
python3 -m pip install openshift==0.11.2 kubernetes==11.0.0
No depedency required for Ansible >= 3
KubeVirt
Get access to a Kubernetes cluster then install KubeVirt for kind or minkube or cloud providers
Demo
Testing nginx ansible role with KubeVirt, via github actions: jseguillon/ansible-role-nginx
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-kubevirt-0.0.4.tar.gz
.
File metadata
- Download URL: molecule-kubevirt-0.0.4.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3044378b51f0588c887d0a821f5528b37675e54b557f0fd672aada73f3ab0917 |
|
MD5 | 9b0a97ed11ba5fe7023384b909efc69d |
|
BLAKE2b-256 | 1a4c438a3b91aa773513797b9dd65467f6c4d117d9bf50b856394070d977a2b5 |
File details
Details for the file molecule_kubevirt-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: molecule_kubevirt-0.0.4-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d07cf209524414208e1bc3222665d915b065ef41ff4ff2ee226aa96f9bfae387 |
|
MD5 | 6489d912f929e70f2378f55950adbe75 |
|
BLAKE2b-256 | 53741149678d40a007cf10ba4cf1ae13fe6223577634306deefd569236f975cc |