Proxmox Virtual Environment (Proxmox VE): Installation & Configuration
Installation
The Proxmox Virtual Environment (Proxmox VE) provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@muhlba91/pulumi-proxmoxve
- Python:
pulumi-proxmoxve
- Go:
github.com/muhlba91/pulumi-proxmoxve/sdk/vX/go/proxmoxve
- .NET:
Pulumi.ProxmoxVE
Configuring Credentials
Pulumi relies on the Proxmox VE API to authenticate requests from your computer to Proxmox VE. Your credentials are never sent to pulumi.com. The Pulumi Proxmox VE Provider needs to be configured with Proxmox VE credentials before it can be used to create resources.
The Proxmox VE Terraform provider uses a nested configuration not currently supported by Pulumi. In fact, we need to set the credentials using the following work-around:
Set the environment variables
PROXMOX_VE_ENDPOINT
,PROXMOX_VE_PASSWORD
,PROXMOX_VE_USERNAME
, andPROXMOX_VE_INSECURE
:export PROXMOX_VE_ENDPOINT=XXXXXXXXXXXX export PROXMOX_VE_PASSWORD=YYYYYYYYYYYY export PROXMOX_VE_USERNAME=ZZZZZZZZZZZZ export PROXMOX_VE_INSECURE=AAAAAAAAAAAA
Configure the provider, e.g. in Typescript:
const provider = new proxmox.Provider('proxmoxve', { endpoint: process.env.PROXMOX_VE_ENDPOINT, insecure: process.env.PROXMOX_VE_INSECURE, username: process.env.PROXMOX_VE_USERNAME, password: process.env.PROXMOX_VE_PASSWORD });
Pass the provider when creating a resource, e.g. in Typescript:
const server = new proxmox.vm.VirtualMachine('vm', ..., { provider: provider, } );