Molecule QEMU
Project description
molecule-qemu
Molecule QEMU driver for testing Ansible roles.
Usage
pip install molecule-qemu
Install QEMU and CDRTools on macOS:
brew install qemu cdrtools
Supported platforms:
- MacOS 13.x (aaarch64)
Support guest OS:
- Ubuntu 20.04 LTS (aarch64)
- Ubuntu 20.04 LTS (x86_64)
- Debian 11 (x86_64)
Support of other platforms and guest OS is possible, but not tested.
Examples
Example scenario
molecule init scenario default --driver-name molecule-qemu --verifier-name testinfra
Example molecule.yml
---
dependency:
name: galaxy
driver:
name: molecule-qemu
platforms:
- name: ubuntu-1
image: file:///Users/andrey/Downloads/focal-server-cloudimg-arm64.img
image_arch: aarch64
ssh_port: 10022
ssh_user: ubuntu
- name: ubuntu-2
image: file:///Users/andrey/Downloads/focal-server-cloudimg-amd64.img
image_arch: x86_64 # default
ssh_port: 10023
ssh_user: ubuntu
- name: debian-1
image: file:///Users/andrey/Downloads/debian-11-generic-amd64.qcow2
image_arch: x86_64 # default
ssh_port: 10024
ssh_user: debian
provisioner:
name: ansible
verifier:
name: ansible
Cloud Images
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
molecule-qemu-0.4.0rc1.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for molecule_qemu-0.4.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c884c460152a04588568d5eb5694ba3dfc900879b7e24d2e27cfe3c8604105e |
|
MD5 | e959a4d77c846c7f56bd10d0d9e32398 |
|
BLAKE2b-256 | 20e7a6f3be26c25e5d2dc8940e451dbaa183ca05c7a86614927af024fc38c33d |