2012-11-26 19:10:34 +00:00
|
|
|
=============
|
|
|
|
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
|
2013-11-22 17:56:57 +00:00
|
|
|
ec2:
|
2012-11-26 20:10:04 +00:00
|
|
|
- start
|
|
|
|
- stop
|
2012-11-26 19:10:34 +00:00
|
|
|
joyent:
|
|
|
|
- stop
|