Proxmox Molecule Plugin :: run molecule tests using proxmox
Project description
This is an experimental Ansible Molecule Driver plugin to manage instances on a Proxmox VE hypervisor cluster. Only virtual machines are supported at this time. Proxmox containers will be supported in a future release.
Requirements
Access to a Proxmox VE cluster
One or more virtual machine templates with required setup
Python package proxmoxer
Ansible module community.general.proxmox_kvm
The required Python packages are automatically installed when molecule-proxmox is installed with pip.
The proxmox_kvm module is included with the Community.General collection and is automatically installed when Ansible is installed with pip.
Virtual machine template requirements
The molecule instances are created by cloning Proxmox virtual machine templates. You will need to create one or more templates.
Templates have the following requirements.
networking configured
Python installed for Ansible
qemu-guest-agent installed and enabled in Proxmox
ssh server installed
user account for Ansible
An ssh public key must be added to the authorized_keys for the Ansible user account.
If a non-root user is used for the Ansible user (recommended), that user should be added to the sudoers. (This is not needed for the driver, but will likely be needed for the converge playbook.)
Example
driver:
name: proxmox
options:
api_host: pve01.example.com
api_user: molecule
api_password: "********"
node: pve01
ssh_user: tester
ssh_identity_file: /path/to/id_rsa
platforms:
- name: test01
template_vmid: 9000
- name: test02
template_vmid: 9000
driver:
name: proxmox
options:
api_host: pve01.example.com
api_user: molecule
api_token_id: "********"
api_token_secret: "*******************************"
node: pve01
ssh_user: tester
ssh_identity_file: /path/to/id_rsa
platforms:
- name: test01
template_vmid: 9000
- name: test02
template_vmid: 9000
driver:
name: proxmox
options:
# Secrets file may be encrypted with ansible-vault.
proxmox_secrets: /path/to/proxmox_secrets.yml"
node: pve01
ssh_user: tester
ssh_identity_file: /path/to/id_rsa
platforms:
- name: test01
template_vmid: 9000
- name: test02
template_vmid: 9000
License
The MIT License.
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
Built Distribution
Hashes for molecule_proxmox-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d5c3238c00f97e76de1dd86381528e98d673ba79426f08ab7158c98288a0a82 |
|
MD5 | c6e49547ff290989a6edbe9c7b1e732c |
|
BLAKE2b-256 | bd181ffce415963db2a1a7e2c5624b390f23b9952a5358ad4813786f07b99d97 |