Skip to content
hasiotisPublic

About

Building VMs and applying ansible playbooks

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

Zbuilder: Building VMs and applying ansible playbooks

PyPi version PyPi downloads Build status License: GPL v3

ZBuilder is a tool to help you build VMs ready to be transferred to ansible. By using ansible as a library, it has access to all ansible variables. This way it achieves high integration with ansible.

Installation

zbuilder depends on the libvirt python bindings, which compile against the libvirt headers, so install those first:

apt install libvirt-dev pkg-config gcc     # or: dnf install libvirt-devel

Then install with:

pipx install --force zbuilder

or

pip3 install --user --upgrade zbuilder

The proxmox provider needs proxmoxer, which ships as an extra:

pipx install --force 'zbuilder[proxmox]'

Providers

Family Providers
VM aws, kvm, proxmox
DNS aws, bind, powerdns
IPAM phpipam

Run zbuilder providers to see the settings each one accepts.

Development

During development you can:

uv sync
. .venv/bin/activate

uv run pytest                # run the tests
prek run --all-files         # lint and format

Links

Releases | Code | Examples

About

Building VMs and applying ansible playbooks

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages