Pulumi Proxmox Provider
Build pulumi provider docs
This repository contains a Pulumi Provider for managing Proxmox VE resources. It allows you to define and manage Proxmox VE resources using Pulumi's infrastructure-as-code approach. (Сurrently in early development stage - focused on LXC container management using)
Overview
Custom Pulumi provider for Proxmox VE written in Python. Main focus is on LXC containers with features missing in existing providers.
Why?
Existing Terraform/Pulumi providers have limitations that affect my workflow:
- LXC disk expansion requires container recreation instead of using Proxmox API
- Missing advanced LXC configuration options
- Limited Proxmox API coverage
This provider is written in Python for easier development and customization.
🔗 Alternative Proxmox IaC Solutions
Terraform Providers
- Telmate/terraform-provider-proxmox - Original Terraform provider
- BPG/terraform-provider-proxmox - Community-maintained fork
Pulumi Providers
- muhlba91/pulumi-proxmoxve - Comprehensive Pulumi provider
- hctamu/pulumi-pve - Alternative Pulumi implementation
📦 Features
Current Implementation
- 🚧 In Development: Core LXC container management
- 🚧 In Development: Enhanced disk operations
Planned Features
- 📦 LXC Containers: Full lifecycle management
- 💾 Disk Management: Dynamic expansion and configuration
- 🌐 Networking: Advanced networking configuration
- 🔧 Templates: Support for LXC templates
- 📊 Monitoring: Resource usage and status monitoring
🛠️ Getting Started
Prerequisites
- Python
- Pulumi CLI
- Access to a Proxmox VE cluster
Installation
Option 1: Install from PyPI (when published)
pip install pulumi-proxmox-provider
Option 2: Install from GitHub (current)
# Install directly from GitHub
pip install git+https://github.com/akmalovaa/pulumi-proxmox-provider.git
# Or clone and install in development mode
git clone https://github.com/akmalovaa/pulumi-proxmox-provider.git
cd pulumi-proxmox-provider
pip install -e .
Option 3: Using uv (recommended for development)
git clone https://github.com/akmalovaa/pulumi-proxmox-provider.git
cd pulumi-proxmox-provider
uv sync
Usage
# Example Python usage - see examples/example_lxc.py for complete example
import pulumi
from pulumi_proxmox_provider import LXCContainer, LXCContainerArgs
# Configuration
config = pulumi.Config("proxmox")
# Create LXC container
lxc = LXCContainer(
"my-test-container",
LXCContainerArgs(
node=config.get("node", "pve"),
vm_id=210,
hostname="test-container",
cores=2,
memory=512,
ostemplate="local:vztmpl/ubuntu-24.10-standard_24.10-1_amd64.tar.zst",
password="secure-password",
unprivileged=True,
disks={
"rootfs": "local-lvm:8", # 8GB root filesystem
},
networks={
"net0": "name=eth0,bridge=vmbr0,ip=dhcp",
},
),
)
# Export container information
pulumi.export("container_id", lxc.vm_id)
pulumi.export("container_hostname", lxc.hostname)
For more examples, check the examples/ directory.
Resources
- Pulumi Registry - Official Pulumi provider registry
- Proxmox VE API Documentation
Development
uv pip install -e .
# or
uv pip install -e . --force-reinstall
Pulumi create stack and select it:
pulumi stack ls
Preview changes:
uv run pulumi preview --diff
Pre-hook verify manual:
uv run pre-commit run --all-files --hook-stage manual
# or commit disable hooks
git commit -m "Update pre-commit configuration to fixed versions" --no-verify
Logging example:
pulumi.info("message")
pulumi.info("message", resource)
pulumi.debug("hidden by default")
pulumi.warn("warning")
pulumi.error("fatal error")
Metadata
Release files for pulumi-proxmox-provider 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pulumi_proxmox_provider-0.1.0.tar.gz | 16.3 kB | Without provenance | Details for pulumi_proxmox_provider-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pulumi_proxmox_provider-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pulumi_proxmox_provider-0.1.0-py3-none-any.whl |
Total release size: 32.1 kB
Release files / pulumi_proxmox_provider-0.1.0.tar.gz
| Download URL | pulumi_proxmox_provider-0.1.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6338c0305ebf22405a73462f8505f0eb4b2e45a153b1bdc295452fa83c2371ed
|
|
BLAKE2b-256 checksum How to use checksums |
86607d4aa9eb17135a899f68c99658ddf33271b74e02bea45e9802c977e376a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / pulumi_proxmox_provider-0.1.0-py3-none-any.whl
| Download URL | pulumi_proxmox_provider-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
feac29087b31c80d8aebd00730bcdad79e4f4428a61667a241469ad28599aa6b
|
|
BLAKE2b-256 checksum How to use checksums |
ab7b5b20ae4d6d484d29910fc4df88e4e3abcf31994af99e8a023f2c2809cd40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Security for pulumi-proxmox-provider 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.