LinuxCommandLibrary

salt-call

Run Salt modules locally on a minion

TLDR

Run state locally

$ salt-call state.apply
copy
Run specific state
$ salt-call state.apply [apache]
copy
Execute module function
$ salt-call cmd.run 'uname -a'
copy
Run in local mode
$ salt-call --local grains.items
copy
Test mode
$ salt-call state.apply test=True
copy

SYNOPSIS

salt-call [options] function [arguments...]

DESCRIPTION

salt-call runs Salt execution modules and states directly on a minion. Useful for testing, debugging, and masterless Salt configurations. Part of SaltStack configuration management.

PARAMETERS

--local

Run without master.
--grains
Return minion grains.
--pillar data
Set pillar data.
--output format
Output format (json, yaml, etc.).
--state-output mode
State output verbosity.
--log-level level
Log level.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community