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

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

Built distribution (wheel)

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

Total release size: 135.1 kB

Release files / pulumi_xenorchestra-1.4.0a1739797154.tar.gz

Download URL pulumi_xenorchestra-1.4.0a1739797154.tar.gz
Size 47.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f69e75ac7de30a17a43f17a13cbe5d70a70aa1d017562ad5c879fec686f23f3f
BLAKE2b-256 checksum
How to use checksums
7efa03652ec8739482ce6d235de944a988b543ec9b29126b8994cf2069875301
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.0a1739797154-py3-none-any.whl

Download URL pulumi_xenorchestra-1.4.0a1739797154-py3-none-any.whl
Size 87.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15c2a7306986ce47de539538c34c6fc33d0e4a6ba05d1a03893af693cfbfdd5e
BLAKE2b-256 checksum
How to use checksums
c359b5c69cf5ddba26b6ddac1dbbbc33c54bade68fbda78e116ab20668dd63d3
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