muhlba91/pulumi-proxmoxve
Acerca de
Pulumi provider for creating and managing Proxmox VE resources
Aprendizaje y educaciónCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalPulumi Proxmox VE Provider
A Pulumi package to manage Proxmox Virtual Environment (Proxmox VE) resources. This provider is built on the Terraform Proxmox Provider.
Installation
This package is available for multiple programming languages. Install using your preferred package manager:
Node.js (JavaScript/TypeScript)
npm install @muhlba91/pulumi-proxmoxve
# or
yarn add @muhlba91/pulumi-proxmoxve
Python
pip install pulumi-proxmoxve
Go
go get github.com/muhlba91/pulumi-proxmoxve/sdk/v6/go/proxmoxve
.NET
dotnet add package Pulumi.ProxmoxVE
Configuration
You must configure the provider with your Proxmox VE API credentials. Currently, you must explicitly pass configuration values to the provider constructor. You can use environment variables to manage these secrets:
| Variable | Description |
|---|---|
PROXMOX_VE_ENDPOINT |
The API endpoint of your Proxmox VE server (e.g., https://pve.example.com:8006) |
PROXMOX_VE_USERNAME |
Your Proxmox VE username |
PROXMOX_VE_PASSWORD |
Your Proxmox VE password or API token |
PROXMOX_VE_INSECURE |
Set to true to skip TLS certificate verification |
Example Usage
TypeScript
import * as pulumi from '@pulumi/pulumi';
import * as proxmox from '@muhlba91/pulumi-proxmoxve';
// Initialize the Proxmox provider
const provider = new proxmox.Provider('proxmoxve', {
endpoint: process.env.PROXMOX_VE_ENDPOINT,
username: process.env.PROXMOX_VE_USERNAME,
password: process.env.PROXMOX_VE_PASSWORD,
insecure: process.env.PROXMOX_VE_INSECURE === 'true',
});
// Create a Virtual Machine
const vm = new proxmox.vm.VirtualMachine('my-vm', {
nodeName: 'pve-node-1',
// ... further configuration
}, { provider });
Migration
v7 to v8 (Breaking Changes)
Version 8 introduces a breaking change in how resources are named to align with the upstream Terraform provider's transition to the modern provider framework.
- Standardized Resource Names: Due to the upstream provider introducing the
proxmox_prefix and standardizing resource identification, custom resource name and ID changes have been deprecated. - Legacy Namespacing: Resources that previously started with
proxmox_virtual_environment_have been moved to aLegacynaming format (e.g.,proxmoxve:VM/virtualMachine:VirtualMachineis nowproxmoxve:index/vmLegacy:VmLegacy). - Standardized Resource IDs: Resources which have an
idinput exposed by the Terraform provider are consistently renamed toresourceId. In particular, this affects resources created using the Terraform provider framework.
State Migration
You can migrate your existing stack by exporting the state, updating the resource tokens, and re-importing:
pulumi stack export > stack.json
# Example: updating the VirtualMachine resource token
sed -i 's/proxmoxve:VM\/virtualMachine:VirtualMachine/proxmoxve:index\/vmLegacy:VmLegacy/g' stack.json
pulumi stack import < stack.json
ID Migration
For resources that have an id input, you will need to update your code to use resourceId instead. For example:
// Example: updating a Vnet resource to use resourceId instead of id
// Before
const vnet = new proxmox.sdn.Vnet('my-vnet', {
vnetId: '1',
// ... further configuration
});
// After
const vnet = new proxmox.sdn.Vnet('my-vnet', {
resourceId: '1',
// ... further configuration
});
Reference
- Upstream Provider Reference: Terraform Proxmox Provider Documentation
- Proxmox API: Proxmox VE API Viewer
- Official Documentation: Proxmox VE Documentation
Development
Tool versions (Go, golangci-lint, Pulumi, pulumictl, GoReleaser, Node, Python, .NET, Java) are managed with mise: run mise trust and mise install once, then use the usual commands (make ..., go test ./...).
Secrets
The release credentials (Java signing key, Sonatype publishing login) come from Vault through fnox (fnox.toml, installed by mise):
- CI:
hashicorp/vault-actiononly logs in (GitHub OIDC,exportToken); fnox reads the values listed infnox.toml. - Locally: set
VAULT_ADDRand log in with the Vault CLI, then run commands withfnox exec -- <command>.fnox.local.toml(ignored by git) can override values for experiments.
Contributors
Thanks goes to these wonderful people (emoji key):
Daniel Mühlbachler-Pietrzykowski 🚧 💻 📖 |
Nelson Costa Martins 💡 |
Guinevere Saenger 📖 |
Susan Evans 📖 |
zamrih 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Explorar proyectos relacionados
Cargando…