SaltStack returning too much detail

saltstack

Whenever I run salt '*' state.highstate, Salt outputs each module using the following format:

service_|-zabbix_server_|-zabbix-server-mysql_|-running:
    ----------
    __run_num__:
        17
    changes:
        ----------
    comment:
        Service zabbix-server-mysql is already enabled, and is in the desired state
    name:
        zabbix-server-mysql
    result:
        True
    retcode:
        2

I think this started happening after I accidently ran highstate with an e appended to the end like salt '*' state.highstate e.

Any theories on how to get it back to the normal output format?

Best Answer

Highstate output formatting is configured in /etc/salt/master or /etc/salt/master.d/ via several options. Try setting these and restarting salt-master.

22.8.4.6. state_verbose

Controls the verbosity of state runs. By default, the results of all states are returned, but setting this value to False will cause salt to only display output for states which either failed, or succeeded without making any changes to the minion.

state_verbose: True

&

22.8.4.7. state_output

The state_output setting changes if the output is the full multi line output for each changed state if set to 'full', but if set to 'terse' the output will be shortened to a single line. If set to 'mixed', the output will be terse unless a state failed, in which case that output will be full. If set to 'changes', the output will be full unless the state didn't change.

state_output: full

&

22.8.1.18. output

Set the default outputter used by the salt command.

output: nested

Related Topic