Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Xen Orchestra Provider

The provider on top of Xen Orchestra to manage XCP-ng resources. The releases of this package are hosted on the DESY Gitlab here. Pull Requests from dependabot are managed here and then synced back to our Gitlab. Only Python packages are released for the provider since we cannot test it for other languages.

Installing

If you want to use this provider in your python Code you need to install the python package from the Gitlab pypi registry:

pip install pulumi-xenorchestra --index-url https://gitlab.desy.de/api/v4/projects/14393/packages/pypi/simple

Then you can run the following command to install the plugin (the golang binary) from the gitlab releaes page:

pulumi plugin install resource xenorchestra 1.2.0 --server https://gitlab.desy.de/cloud-public/pulumi-xenorchestra/-/releases/v1.2.0/downloads/

Usage

in your __main__.py set up the Xen-Orchestra provider for pulumi in the following way:

import pulumi_xenorchestra as xoa

xoa_provider = xoa.Provider(
    "xenorchestra",
    xoa.ProviderArgs(
        url=Output.secret(secret_data["xoa_url"]),
        token=Output.secret(secret_data["xoa_token"]),
        insecure=False,
)

You can then une the provider to create a Virtual Machine:

xoa.Vm(
    resource_name=machine.name,
    name_label=machine.name,
    name_description="XOA VM",
    cpus=4,
    memory_max=8590000000,
    template=template.id,
    tags=["pulumi"],
    cloud_config=pathlib.Path("./config/cloudinit-xen-static.yaml").read_text()
    ),
    disks=[
        xoa.VmDiskArgs(
            sr_id=machine.storage_repository_id,
            name_label="OS",
            size=34361835520,
        ),
    ],
    networks=[
        xoa.VmNetworkArgs(
            network_id=network.id,
            mac_address=map_ip_to_mac(
                machine.ipv4_address,
                separator=":",
            ),
        ),
    ],
    opts=pulumi.ResourceOptions(
        provider=xoa_provider,
        # Do not recreate node with new credentials
        ignore_changes=["cloud_config"],
        parent=self,
    ),
)

Release files for pulumi-xenorchestra 1.4.0a1739803717

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pulumi-xenorchestra 1.4.0a1739803717
File Size Uploaded
pulumi_xenorchestra-1.4.0a1739803717.tar.gz 47.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pulumi-xenorchestra 1.4.0a1739803717
File Interpreter ABI Platform
pulumi_xenorchestra-1.4.0a1739803717-py3-none-any.whl Python 3 none any Details

Total release size: 135.1 kB

Release files / pulumi_xenorchestra-1.4.0a1739803717.tar.gz

Download URL pulumi_xenorchestra-1.4.0a1739803717.tar.gz
Size 47.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ed875530654b39d1f41d7d96787a68b0e611c52a523e054dbc4eb80c0e88753d
BLAKE2b-256 checksum
How to use checksums
0ee8346241f43d293df1040bff0dfab319265a0fa367543dd169b156cd326ae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.8

Release files / pulumi_xenorchestra-1.4.0a1739803717-py3-none-any.whl

Download URL pulumi_xenorchestra-1.4.0a1739803717-py3-none-any.whl
Size 87.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6aea0337770fbe43b8c69e79dab27ed6579b08fabd8b714868294e5fda69c29c
BLAKE2b-256 checksum
How to use checksums
f8e914bb3a067e1c50c13d6f1b1f59b1190c8b1ee325a69920c81cb463899f63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.8

Release history Release notifications | RSS feed

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page