Salt Cloud¶
The noderings Salt Cloud driver orders servers from the NodeRings marketplace
and bootstraps a Salt minion on them over SSH.
Provider¶
/etc/salt/cloud.providers.d/noderings.conf:
my-noderings:
driver: noderings
token: <service account token> # or NODERINGS_TOKEN in the environment
minion:
master: salt.example.com
Profiles¶
/etc/salt/cloud.profiles.d/noderings.conf:
noderings-ashburn-small:
provider: my-noderings
size: SC-GC-1C-1G-20 # plan code
location: United States/Ashburn # Country/City
image: ubuntu_24_04 # distro
billing_type: usage # hourly, from prepaid credit
ssh_keys: [laptop] # SSH keys stored in NodeRings (a key or a password is required)
private_key: /root/.ssh/id_ed25519
firewall_ruleset: web # optional
tags: [web] # optional
Key |
Meaning |
|---|---|
|
Plan code. |
|
|
|
Distro. |
|
|
|
Order one exact offer instead of the cheapest for |
|
Only consider offers from this hosting provider. |
|
|
|
Names of SSH keys stored in NodeRings. The API needs a key or a |
|
Private key matching one of |
|
Name of a ruleset to attach. |
|
Tags for the server. |
|
|
|
Seconds to wait for the server to be running (default 900). |
Use¶
salt-cloud -p noderings-ashburn-small web-1 # order and bootstrap
salt-cloud -Q # list servers
salt-cloud -a stop web-1 # stop, start, reboot
salt-cloud -a show_instance web-1
salt-cloud -d web-1 # delete
An hourly server stops billing when it is deleted. A monthly subscription is cancelled at once, without a refund for the rest of the month.