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.
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]'
| Family | Providers |
|---|---|
| VM | aws, kvm, proxmox |
| DNS | aws, bind, powerdns |
| IPAM | phpipam |
Run zbuilder providers to see the settings each one accepts.
During development you can:
uv sync
. .venv/bin/activate
uv run pytest # run the tests
prek run --all-files # lint and format