15.2.1. Salt Cloud basic usage

Salt Cloud needs, at least, one configured Provider and Profile to be functional.

15.2.1.1. Creating a VM

To create a VM with salt cloud, use command:

salt-cloud -p <profile> name_of_vm

Assuming there is a profile configured as following:

fedora_rackspace:
    provider: rackspace
    image: Fedora 17
    size: 256 server
    script: bootstrap-salt

Then, the command to create new VM named fedora_http_01 is:

salt-cloud -p fedora_rackspace fedora_http_01

15.2.1.2. Destroying a VM

To destroy a created-by-salt-cloud VM, use command:

salt-cloud -d name_of_vm

For example, to delete the VM created on above example, use:

salt-cloud -d fedora_http_01

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.7.2

Table Of Contents

Previous topic

15.1.1. Install Salt Cloud

Next topic

15.2.2. VM Profiles

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.