Salt-specific interface for calling Salt Cloud directly
Execute a single action on the given provider/instance
CLI Example:
salt '*' cloud.action start instance=myinstance
salt '*' cloud.action stop instance=myinstance
salt '*' cloud.action show_image provider=my-ec2-config image=ami-1624987f
Create an instance using Salt Cloud
CLI Example:
salt minionname cloud.create my-ec2-config myinstance image=ami-1624987f size='Micro Instance' ssh_username=ec2-user securitygroup=default delvol_on_destroy=True
Destroy the named VM(s)
CLI Example:
salt '*' cloud.destroy myinstance
List all available cloud provider data
CLI Example:
salt '*' cloud.full_query
List cloud provider images for the given providers
CLI Example:
salt '*' cloud.list_images my-gce-config
List cloud provider locations for the given providers
CLI Example:
salt '*' cloud.list_locations my-gce-config
List cloud provider sizes for the given providers
CLI Example:
salt '*' cloud.list_sizes my-gce-config
Create private network
CLI Example:
salt minionname cloud.network_create my-nova names=['salt'] cidr='192.168.100.0/24'
List private networks
CLI Example:
salt minionname cloud.network_list my-nova
Spin up an instance using Salt Cloud
CLI Example:
salt '*' cloud.profile my-gce-config myinstance
List cloud provider data for all providers
CLI Examples:
salt '*' cloud.query
salt '*' cloud.query list_nodes_full
salt '*' cloud.query list_nodes_select
List selected nodes
CLI Example:
salt '*' cloud.select_query
Attach private interfaces to a server
CLI Example:
salt minionname cloud.virtual_interface_create my-nova names=['salt-master'] net_name='salt'
List virtual interfaces on a server
CLI Example:
salt minionname cloud.virtual_interface_list my-nova names=['salt-master']
Attach volume to a server
CLI Example:
salt minionname cloud.volume_attach my-nova myblock server_name=myserver device='/dev/xvdf'
Create volume
CLI Example:
salt minionname cloud.volume_create my-nova myblock size=100 voltype=SSD
Delete volume
CLI Example:
salt minionname cloud.volume_delete my-nova myblock
Detach volume from a server
CLI Example:
salt minionname cloud.volume_detach my-nova myblock server_name=myserver
List block storage volumes
CLI Example:
salt minionname cloud.volume_list my-nova
Docs for previous releases are available on salt.rtfd.org.
Latest Salt release: 2014.1.13
Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.
22.16.25. salt.modules.chocolatey
Upcoming SaltStack events, webinars and local meet ups and user groups.