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.0a1739555517

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.0a1739555517
File Size Uploaded
pulumi_xenorchestra-1.4.0a1739555517.tar.gz 48.2 kB Details

Built distribution (wheel)

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

Total release size: 135.4 kB

Release files / pulumi_xenorchestra-1.4.0a1739555517.tar.gz

Download URL pulumi_xenorchestra-1.4.0a1739555517.tar.gz
Size 48.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0d8341ba8fef96542a07c1fc75ab7fbd8204852139bddaa12cbbf3834546a42f
BLAKE2b-256 checksum
How to use checksums
98caf51748631e1bb6a8f0c247f64557336f8b6ddfa3d4f06b633f64ffb3e914
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.0a1739555517-py3-none-any.whl

Download URL pulumi_xenorchestra-1.4.0a1739555517-py3-none-any.whl
Size 87.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3628d245edb70463e24377fbbdfaaa038bc86b45857043b701cbe427e8ce6b85
BLAKE2b-256 checksum
How to use checksums
ac9ab2ac54c10337310a95502e5624774582856c2a30a41de2f16dd446d96c13
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