noderings¶
Salt Cloud driver for NodeRings.
Orders servers from the NodeRings marketplace and bootstraps a Salt minion on them over SSH.
Provider configuration, for example /etc/salt/cloud.providers.d/noderings.conf:
my-noderings:
driver: noderings
token: <service account token> # or the NODERINGS_TOKEN environment variable
# organization_id: <id> # optional
# minion:
# master: salt.example.com
Profile configuration, for example /etc/salt/cloud.profiles.d/noderings.conf:
noderings-ashburn-small:
provider: my-noderings
size: SC-GC-1C-1G-20 # plan code, see salt-cloud --list-sizes my-noderings
location: United States/Ashburn # country/city, see salt-cloud --list-locations my-noderings
image: ubuntu_24_04 # distro, see salt-cloud --list-images my-noderings
billing_type: usage # hourly, from prepaid credit
ssh_keys: [laptop] # names of SSH keys stored in NodeRings
private_key: /root/.ssh/id_ed25519 # matching private key, for the bootstrap
firewall_ruleset: web # optional
tags: [web] # optional
Then:
salt-cloud -p noderings-ashburn-small web-1
salt-cloud -d web-1
- saltext.noderings.clouds.noderings_mod.get_configured_provider()[source]¶
Return the first configured NodeRings provider. A token may come from the provider block or the
NODERINGS_TOKENenvironment variable, so no key is required in the block.
- saltext.noderings.clouds.noderings_mod.get_dependencies()[source]¶
The driver only needs the standard library.
- saltext.noderings.clouds.noderings_mod.avail_locations(call=None)[source]¶
List the cities with servers for sale, as
Country/City.salt-cloud --list-locations my-noderings
- saltext.noderings.clouds.noderings_mod.avail_images(call=None)[source]¶
List the operating systems a server can be ordered with.
salt-cloud --list-images my-noderings
- saltext.noderings.clouds.noderings_mod.avail_sizes(call=None)[source]¶
List the plan codes for sale, with their size.
salt-cloud --list-sizes my-noderings
- saltext.noderings.clouds.noderings_mod.list_nodes(call=None)[source]¶
List servers with their basic details.
salt-cloud -Q
- saltext.noderings.clouds.noderings_mod.list_nodes_full(call=None)[source]¶
List servers with every field.
salt-cloud -F
- saltext.noderings.clouds.noderings_mod.list_nodes_select(call=None)[source]¶
List servers with the fields in
query.selection.salt-cloud -S
- saltext.noderings.clouds.noderings_mod.show_instance(name, call=None)[source]¶
Show one server.
salt-cloud -a show_instance web-1
- saltext.noderings.clouds.noderings_mod.create(vm_)[source]¶
Order a server and bootstrap a Salt minion on it.
salt-cloud -p noderings-ashburn-small web-1
- saltext.noderings.clouds.noderings_mod.destroy(name, call=None)[source]¶
Delete a server. An hourly server stops billing; a monthly subscription is cancelled without a refund.
salt-cloud -d web-1
- saltext.noderings.clouds.noderings_mod.start(name, call=None)[source]¶
Start a stopped server.
salt-cloud -a start web-1