Salt commands are executed using a common structure:
salt '*' pkg.install vim [target] [module.function] [arguments]
The target determines which systems apply the command. In the example above we target all (
'*') the Salt minions. See the targeting minions documentation for more information about targeting Salt minions.
The command (module.function) is the function to execute. In the above example we use the
pkg.install function to tell the targets to install a package.
The arguments provide any extra data that is needed by the function you are calling. In the example above we tell the
pkg.install function to install the package named