All Projects → ansible-community → molecule-libvirt

ansible-community / molecule-libvirt

Licence: MIT license
Molecule LibVirt Provider

Programming Languages

python
139335 projects - #7 most used programming language
Jinja
831 projects
shell
77523 projects

Projects that are alternatives of or similar to molecule-libvirt

molecule-ec2
molecule-ec2
Stars: ✭ 46 (+31.43%)
Mutual labels:  molecule, molecule-driver
molecule-hetznercloud
Molecule Hetzner Cloud driver 💀
Stars: ✭ 21 (-40%)
Mutual labels:  molecule, molecule-driver
molecule-openstack
Molecule OpenStack Driver
Stars: ✭ 15 (-57.14%)
Mutual labels:  molecule, molecule-driver
Ansible Role Bootstrap
Prepare your system to be managed by Ansible.
Stars: ✭ 106 (+202.86%)
Mutual labels:  molecule
Kekule.js
A Javascript cheminformatics toolkit.
Stars: ✭ 156 (+345.71%)
Mutual labels:  molecule
evcloud
EVCloud是一个基于ceph和libvirt的轻量级云主机管理平台,实用稳定,维护简易
Stars: ✭ 44 (+25.71%)
Mutual labels:  libvirt
chemprop
Fast and scalable uncertainty quantification for neural molecular property prediction, accelerated optimization, and guided virtual screening.
Stars: ✭ 75 (+114.29%)
Mutual labels:  molecule
Ansible Telegraf
Installing and configuring Telegraf via Ansible for RedHat/Debian/Ubuntu/Windows/Suse.
Stars: ✭ 91 (+160%)
Mutual labels:  molecule
development-environment
A development environment for Java, Python, Node.js and Go built using Vagrant
Stars: ✭ 50 (+42.86%)
Mutual labels:  molecule
vagrant-travisci-libvrt
Example project showing how to run Vagrant on TravisCI using libvrt & KVM
Stars: ✭ 25 (-28.57%)
Mutual labels:  libvirt
ansible-snmp-exporter
Provision SNMP metrics exporter for prometheus monitoring
Stars: ✭ 18 (-48.57%)
Mutual labels:  molecule
Dgl Lifesci
Python package for graph neural networks in chemistry and biology
Stars: ✭ 194 (+454.29%)
Mutual labels:  molecule
MolDQN-pytorch
A PyTorch Implementation of "Optimization of Molecules via Deep Reinforcement Learning".
Stars: ✭ 58 (+65.71%)
Mutual labels:  molecule
Chemozart
Web-based 3D molecule editor and visualizer with molecular mechanics calculators.
Stars: ✭ 142 (+305.71%)
Mutual labels:  molecule
virt-backup
Backup your kvm guests managed by libvirt
Stars: ✭ 88 (+151.43%)
Mutual labels:  libvirt
Ansible Alertmanager
Deploy Prometheus Alertmanager service
Stars: ✭ 93 (+165.71%)
Mutual labels:  molecule
kubic-terraform-kvm
Kubic Terraform script using KVM/libvirt
Stars: ✭ 30 (-14.29%)
Mutual labels:  libvirt
Avogadrio
Worship your favorite molecule by setting it as your wallpaper.
Stars: ✭ 239 (+582.86%)
Mutual labels:  molecule
Ansible Dockerswarm
Docker Engine clustering using "Swarm Mode" and Ansible
Stars: ✭ 226 (+545.71%)
Mutual labels:  molecule
MoleculeJS
A library for creating fast and reactive Custom Elements
Stars: ✭ 39 (+11.43%)
Mutual labels:  molecule

Molecule libvirt Plugin

PyPI Package Python Black Code Style Ansible Code of Conduct Ansible mailing lists Repository License

Molecule libvirt is designed to allow use of libvirt for provisioning test resources.

Please note that this driver is currently in its early stage of development, do not even try to install or use it until this message is removed.

Quickstart

Installation

pip install molecule-libvirt

Create a scenario

With a new role

molecule init role -d libvirt my-role

This will create a new folder my-role containing a bare-bone generated role like you would do with ansible-galaxy init command.

It will also contain a molecule folder with a default scenario using the libvirt driver (using ansible community.libvirt collection).

Install the collection using:

ansible-galaxy install -r test_requirements.yml.

Example

This is a molecule.yml example file

dependency:
name: galaxy
driver:
  name: libvirt
platforms:
  - name: instance-1
    cpu: 1
    cpu_model: "qemu64"
    image_url: "https://download.fedoraproject.org/pub/fedora/linux/releases/34/Cloud/x86_64/images/Fedora-Cloud-Base-34-1.2.x86_64.qcow2"
    disk_size: "10G"
    ssh_port: 22
    memory_size: "1" # in GB
  - name: instance-2
    memory: "1"
    cpus: 1
    image_url: "https://download.fedoraproject.org/pub/fedora/linux/releases/34/Cloud/x86_64/images/Fedora-Cloud-Base-34-1.2.x86_64.qcow2"
    libvirt_host: "server.home.lan"
    libvirt_user: "james"
    bridge_name: "bridge0"
  - name: instance-3
    memory: "1"
    cpus: 1
    image_url: "https://download.fedoraproject.org/pub/fedora/linux/releases/34/Cloud/x86_64/images/Fedora-Cloud-Base-34-1.2.x86_64.qcow2"
    libvirt_host: "server.home.lan"
    libvirt_user: "james"
    bridge_name: "bridge0"
provisioner:
  name: ansible
verifier:
  name: ansible

Optional parameters

molecule_bridge: existing bridge on local host. Can be useful if you want to set network interface name created for molecule. default value is: molecule-br0.

molecule_network_cidr: ip address range that should be bind to molecule virtual network. default value is: 10.10.10.0/24.

qemu_user: qemu process user. On RHEL like system qemu user is qemu. On Debian like, qemu user is libvirt-qemu. default value is: qemu.

cpu_model: specifies CPU model requested by the guest virtual machine. default is : qemu64.

arch: specifying the CPU architecture to virtualization. default is x86_64.

timezone: vm's timezone. default is America/Toronto.

bridge_name: existing bridge on remote host. This bridge should allow VM being reachable with an ip address.

libvirt_host and libvirt_user: remote host parameters. libvirt_user should belongs to libvirt group.

Once set, you will have to run:

molecule test

Documentation

Read the documentation and more at https://molecule.readthedocs.io/.

Get Involved

Authors

  • James Regis
  • Gaëtan Trellu
  • Gariele Cerami
  • Sorin Sbarnea

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].