salt.modules.sysmod

The sys module provides information about the available functions on the minion.

salt.modules.sysmod.argspec(module='')

Return the argument specification of functions in Salt execution modules.

CLI Example:

salt '*' sys.argspec pkg.install
salt '*' sys.argspec sys
salt '*' sys.argspec
salt.modules.sysmod.doc(module='')

Return the docstrings for all modules. Optionally, specify a module or a function to narrow the selection.

The strings are aggregated into a single document on the master for easy reading.

CLI Example:

salt '*' sys.doc
salt '*' sys.doc sys
salt '*' sys.doc sys.doc
salt.modules.sysmod.list_functions(module='')

List the functions for all modules. Optionally, specify a module to list from.

CLI Example:

salt '*' sys.list_functions
salt '*' sys.list_functions sys
salt.modules.sysmod.list_modules()

List the modules loaded on the minion

CLI Example:

salt '*' sys.list_modules
salt.modules.sysmod.reload_modules()

Tell the minion to reload the execution modules

CLI Example:

salt '*' sys.reload_modules

Previous topic

salt.modules.sysbench

Next topic

salt.modules.systemd