mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
34 lines
813 B
ReStructuredText
34 lines
813 B
ReStructuredText
=============
|
|
Cloud Actions
|
|
=============
|
|
|
|
Once a VM has been created, there are a number of actions that can be performed
|
|
on it. The "reboot" action can be used across all providers, but all other
|
|
actions are specific to the cloud provider. In order to perform an action, you
|
|
may specify it from the command line, including the name(s) of the VM to
|
|
perform the action on:
|
|
|
|
.. code-block:: bash
|
|
|
|
$ salt-cloud -a reboot vm_name
|
|
$ salt-cloud -a reboot vm1 vm2 vm2
|
|
|
|
Or you may specify a map which includes all VMs to perform the action on:
|
|
|
|
.. code-block:: bash
|
|
|
|
$ salt-cloud -a reboot -m /path/to/mapfile
|
|
|
|
The following is a list of actions currently supported by salt-cloud:
|
|
|
|
.. code-block:: yaml
|
|
|
|
all providers:
|
|
- reboot
|
|
ec2:
|
|
- start
|
|
- stop
|
|
joyent:
|
|
- stop
|
|
|