SALT-CLOUD(1)
β¨ salt-cloud β the Salt Cloud Command π
ok so bestie, this is salt-cloud(1), from the Salt manual (section 1, the cool kids' section). π¦ Sit down, grab a strawberry drink, and let's get you provisioning virtual machines in the cloud with Salt. It's giving main character energy and honestly? It ate. π
πΈ NAME πΈ
salt-cloud β the Salt Cloud Command, duh π
Provision virtual machines in the cloud with Salt. That's the whole vibe. β¨
π SYNOPSIS π
salt-cloud -m /etc/salt/cloud.map
salt-cloud -m /etc/salt/cloud.map NAME
salt-cloud -m /etc/salt/cloud.map NAME1 NAME2
salt-cloud -p PROFILE NAME
salt-cloud -p PROFILE NAME1 NAME2 NAME3 NAME4 NAME5 NAME6
Look at those little invocations, they're so cute. π«Ά
π DESCRIPTION π
Okay so Salt Cloud is literally the system you use to provision virtual machines on all kinds of public clouds π¦, and it does it through a cleanly controlled profile and mapping system. Profiles, maps, vibes. That's the whole deal. No cap. π
π OPTIONS π
The icons themselves. Every single one, no skipping, periodt. β¨
--versionβ Prints the version of Salt that's currently running. Like a lil name tag for your Salt. π·οΈ--versions-reportβ Shows you the program's dependencies AND the version number, then bounces. Exit stage left. π-h,--helpβ Shows the help message and exits. Your emergency bestie when you forget stuff. π«Ά-c CONFIG_DIR,--config-dir=CONFIG_dirβ Tells Salt where the configuration directory lives. That directory holds the config files for the Salt master and minions. On most systems the default is/etc/salt. π
β‘ Execution Options β‘
-L LOCATION,--location=LOCATIONβ Pick which region to connect to. Region selection, iconic. πΊοΈ-a ACTION,--action=ACTIONβ Perform an action that might be specific to this cloud provider. Heads up bestie: this argument needs one or more instance names specified too. π-f <FUNC-NAME> <PROVIDER>,--function=<FUNC-NAME> <PROVIDER>β Run a function that might be specific to this cloud provider, one that doesn't apply to an instance. This one requires a provider to be specified (i.e.:nova). π§-p PROFILE,--profile=PROFILEβ Select a single profile to build the named cloud VMs from. The profile has to be defined in the specified profiles file, no shortcuts. π-m MAP,--map=MAPβ Specify a map file to use. If you use it without any other options, this option makes sure all of the mapped VMs get created. And if the named VM already exists? It gets skipped. Politely. π-H,--hardβ When you specify a map file, the default behavior is to make sure all the VMs in the map file are created. But if--hardis set, then any VMs that exist on configured cloud providers and are NOT specified in the map file will be destroyed.
β οΈ Be advised that this can be a destructive operation and should be used with care. Like, actually. Not me being dramatic. π
-d,--destroyβ Pass in the name(s) of VMs to destroy andsalt-cloudwill search the configured cloud providers for those names and destroy the VMs.
β οΈ Be advised that this is a destructive operation and should be used with care. Can be used in conjunction with the -m option to specify a map of VMs to be deleted. π
-P,--parallelβ Normally when building many cloud VMs they're executed serially, one after another, like a lil queue. The-Poption runs each cloud vm build in a separate process, so big groups of VMs can be built all at once. β‘
Be advised that some cloud provider's systems don't seem well suited for this influx of vm creation. When creating large groups of VMs, watch the cloud provider carefully. π
-u,--update-bootstrapβ Updatessalt-bootstrapto the latest stable bootstrap release. Fresh out the box. β¨-y,--assume-yesβ Defaults to yes in answer to all confirmation questions. Living dangerously, love that for you. π-k,--keep-tmpβ Do not remove files from/tmp/afterdeploy.shfinishes. Hoarding behavior, but make it valid. ποΈ--show-deploy-argsβ Includes the options used to deploy the minion in the data returned. Receipts! π§Ύ--script-args=SCRIPT_ARGSβ Script arguments to be fed to the bootstrap script when deploying the VM. π½οΈ
π Query Options π
-Q,--queryβ Executes a query and returns some information about the nodes running on configured cloud providers. Curious girlie behavior. π-F,--full-queryβ Executes a query and prints out all available information about all cloud VMs. Can be used in conjunction with-mto display only information about the specified map. The full tea. β-S,--select-queryβ Executes a query and prints out selected information about all cloud VMs. Can be used in conjunction with-mto display only information about the specified map. Just the highlights. β¨--list-providersβ Displays a list of configured providers. π--list-profilesβ
New in version 2014.7.0. π
Displays a list of configured profiles. Pass in a cloud provider to view that provider's associated profiles, such as digitalocean, or pass in all to list all the configured profiles. π
π€οΈ Cloud Providers Listings π€οΈ
--list-locations=LIST_LOCATIONSβ Displays a list of locations available in configured cloud providers. Pass the cloud provider you want available locations on, such as"linode", or pass"all"to list locations for all configured cloud providers. π--list-images=LIST_IMAGESβ Displays a list of images available in configured cloud providers. Pass the cloud provider you want available images on, such as"linode", or pass"all"to list images for all configured cloud providers. πΌοΈ--list-sizes=LIST_SIZESβ Displays a list of sizes available in configured cloud providers. Pass the cloud provider you want available sizes on, such as"AWS", or pass"all"to list sizes for all configured cloud providers. π
π Cloud Credentials π
--set-password=<USERNAME> <PROVIDER>β Configure a password for a cloud provider and save it to the keyring.PROVIDERcan be specified with or without a driver, for example:"--set-password bob rackspace"or more specific"--set-password bob rackspace:openstack"DEPRECATED! π¨
π¨ Output Options π¨
--outβ Pass in an alternative outputter to display the return of data. This outputter can be any of the available outputters:
highstate, json, key, overstatestage, pprint, raw, txt, yaml,
and many others.
Some outputters are formatted only for data returned from specific functions. If an outputter is used that does not support the data passed into it, then Salt will fall back on the pprint outputter and display the return data using the Python pprint standard library module. π
--out-indent OUTPUT_INDENT,--output-indent OUTPUT_INDENTβ Print the output indented by the provided value in spaces. Negative values disable indentation. Only applicable in outputters that support indentation. π--out-file=OUTPUT_FILE,--output-file=OUTPUT_FILEβ Write the output to the specified file. π--out-file-append,--output-file-appendβ Append the output to the specified file. β--no-colorβ Disable all colored output. Sad, muted, greyscale vibes. π₯²--force-colorβ Force colored output. Make it pop. π
NOTE: π«§ When using colored output the color codes are as follows: green denotes success, red denotes failure, blue denotes changes and success and yellow denotes a expected future change in configuration.
--state-output=STATE_OUTPUT,--state_output=STATE_OUTPUTβ Override the configuredstate_outputvalue for minion output. One of'full','terse','mixed','changes'or'filter'. Default:'none'. ποΈ--state-verbose=STATE_VERBOSE,--state_verbose=STATE_VERBOSEβ Override the configuredstate_verbosevalue for minion output. Set toTrueorFalse. Default:none. π£οΈ
π EXAMPLES π
Bestie, here's where it gets fun. π
To create 4 VMs named web1, web2, db1, and db2 from specified profiles:
salt-cloud -p fedora_rackspace web1 web2 db1 db2
To read in a map file and create all VMs specified therein:
salt-cloud -m /path/to/cloud.map
To read in a map file and create all VMs specified therein in parallel:
salt-cloud -m /path/to/cloud.map -P
To delete any VMs specified in the map file:
salt-cloud -m /path/to/cloud.map -d
To delete any VMs NOT specified in the map file:
salt-cloud -m /path/to/cloud.map -H
To display the status of all VMs specified in the map file:
salt-cloud -m /path/to/cloud.map -Q
π SEE ALSO π
salt-cloud(7) salt(7) salt-master(1) salt-minion(1)
Go read those next, they're the whole friend group. π«Ά
π AUTHOR π
Thomas S. Hatch <thatch45@gmail.com> and many others β please see the Authors file. Legends, all of them. π
Β©οΈ COPYRIGHT Β©οΈ
2025
okay that's the whole page, and as a lil sign-off: this is version 3007.8, generated on September 18, 2025 at 06:58:52 UTC. Thanks for coming to my ted talk, go provision something cute. πβ¨ππ¦πΈπ
π¦ where this page comes from
- fedora 44: salt-cloud 3007.8-4.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms