salt.cloud.clouds.hetzner
Hetzner Cloud Module
The Hetzner cloud module is used to control access to the hetzner cloud. https://docs.hetzner.cloud/
- depends
-
hcloud >= 1.10
Use of this module requires the key
parameter to be set.
my-hetzner-cloud-config: key: <your api key> driver: hetzner
salt.cloud.clouds.hetzner.avail_images(call=None)
salt.cloud.clouds.hetzner.avail_locations(call=None)
salt.cloud.clouds.hetzner.avail_sizes(call=None)
-
Create a single VM from a data dict
salt.cloud.clouds.hetzner.create(vm_)
-
Destroy a node.
CLI Example:
salt-cloud --destroy mymachine
salt.cloud.clouds.hetzner.destroy(name, call=None)
-
Return the first configured instance.
salt.cloud.clouds.hetzner.get_configured_provider()
-
Warn if dependencies aren't met.
salt.cloud.clouds.hetzner.get_dependencies()
salt.cloud.clouds.hetzner.list_nodes(call=None)
salt.cloud.clouds.hetzner.list_nodes_full(call=None)
salt.cloud.clouds.hetzner.list_ssh_keys(call=None)
-
Reboot a node.
CLI Example:
salt-cloud -a reboot mymachine
salt.cloud.clouds.hetzner.reboot(name, call=None, wait=True)
-
Resize a node.
CLI Example:
salt-cloud -a resize mymachine size=...
salt.cloud.clouds.hetzner.resize(name, kwargs, call=None)
salt.cloud.clouds.hetzner.show_instance(name, call=None)
-
Start a node.
CLI Example:
salt-cloud -a start mymachine
salt.cloud.clouds.hetzner.start(name, call=None, wait=True)
-
Stop a node.
CLI Example:
salt-cloud -a stop mymachine
salt.cloud.clouds.hetzner.stop(name, call=None, wait=True)
-
Wait until a specific state has been reached on a node
salt.cloud.clouds.hetzner.wait_until(name, state, timeout=300)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/clouds/all/salt.cloud.clouds.hetzner.html