DigitalOcean plugin for Waldur Site Agent
Project description
DigitalOcean plugin for Waldur Site Agent
This plugin integrates Waldur Site Agent with DigitalOcean using the
python-digitalocean SDK. It provisions droplets based on marketplace orders
and exposes droplet metadata back to Waldur.
Configuration
Example configuration for an offering:
offerings:
- name: DigitalOcean VM
waldur_api_url: https://waldur.example.com/api/
waldur_api_token: <TOKEN>
waldur_offering_uuid: <OFFERING_UUID>
backend_type: digitalocean
order_processing_backend: digitalocean
reporting_backend: digitalocean
membership_sync_backend: digitalocean
backend_settings:
token: <DIGITALOCEAN_API_TOKEN>
default_region: ams3
default_image: ubuntu-22-04-x64
default_size: s-1vcpu-1gb
default_user_data: |
#cloud-config
packages:
- htop
default_tags:
- waldur
backend_components:
cpu:
measured_unit: Cores
unit_factor: 1
accounting_type: limit
label: CPU
ram:
measured_unit: MiB
unit_factor: 1
accounting_type: limit
label: RAM
disk:
measured_unit: MiB
unit_factor: 1
accounting_type: limit
label: Disk
Resource attributes
You can override defaults per resource using attributes passed from Waldur:
regionorbackend_region_idimageorbackend_image_idsizeorbackend_size_iduser_dataorcloud_initssh_key_id,ssh_key_fingerprint, orssh_public_keyssh_key_name(optional when usingssh_public_key)tags(list of strings)
If ssh_public_key is provided, the plugin will create the key in DigitalOcean
if it does not already exist.
Resize via limits
To resize droplets from UPDATE orders, you can provide a size mapping:
backend_settings:
size_mapping:
s-1vcpu-1gb:
cpu: 1
ram: 1024
disk: 25
When limits match an entry in size_mapping, the droplet will be resized to
the corresponding size_slug.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file waldur_site_agent_digitalocean-1.0.3.tar.gz.
File metadata
- Download URL: waldur_site_agent_digitalocean-1.0.3.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.3","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3fd7776a5a9b1339efa6e8281b96222fe1dbe1300773e4d6b1a47aa34b4559c
|
|
| MD5 |
58343b1d1b9b2dcce3b2f74404bf9a5c
|
|
| BLAKE2b-256 |
379641cbe2e890a16bd6de8d69574af5e479369c5505b4d6ea3fc1adc7bf1597
|
File details
Details for the file waldur_site_agent_digitalocean-1.0.3-py3-none-any.whl.
File metadata
- Download URL: waldur_site_agent_digitalocean-1.0.3-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Alpine Linux","version":"3.23.3","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e7023e0f624c4f5030c3edc703729db5a19f457468322bd6c729f0c48a7fc28
|
|
| MD5 |
986bb9dfd9ea9f691089ea54dc0bc51d
|
|
| BLAKE2b-256 |
7f96514d1d82c04d16c744fa783453f5d7ea08171c43c4d81926be91a493e2c4
|