1
0

action.rst 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. _salt-cloud-actions:
  2. =============
  3. Cloud Actions
  4. =============
  5. Once a VM has been created, there are a number of actions that can be performed
  6. on it. The "reboot" action can be used across all providers, but all other
  7. actions are specific to the cloud provider. In order to perform an action, you
  8. may specify it from the command line, including the name(s) of the VM to
  9. perform the action on:
  10. .. code-block:: bash
  11. $ salt-cloud -a reboot vm_name
  12. $ salt-cloud -a reboot vm1 vm2 vm2
  13. Or you may specify a map which includes all VMs to perform the action on:
  14. .. code-block:: bash
  15. $ salt-cloud -a reboot -m /path/to/mapfile
  16. The following is an example list of actions currently supported by ``salt-cloud``:
  17. .. code-block:: yaml
  18. all providers:
  19. - reboot
  20. ec2:
  21. - start
  22. - stop
  23. joyent:
  24. - stop
  25. linode:
  26. - start
  27. - stop
  28. Another useful reference for viewing more ``salt-cloud`` actions is the
  29. :ref:`Salt Cloud Feature Matrix <salt-cloud-feature-matrix>`.