salt.states.module

Execution of Salt modules from within states.

Individual module calls can be made via states. to call a single module function use the run function.

One issue exists, since the name argument is present in the state call and is present in many modules, this argument will need to be replaced in the sls data with the argument m_name.

salt.states.module.mod_watch(name, **kwargs)

Run a single module function

name
The module function to execute
returner
Specify the returner to send the return of the module execution to
**kwargs
Pass any arguments needed to execute the function
salt.states.module.run(name, **kwargs)

Run a single module function

name
The module function to execute
returner
Specify the returner to send the return of the module execution to
**kwargs
Pass any arguments needed to execute the function
salt.states.module.wait(name, **kwargs)

Run a single module function only if the watch statement calls it

name
The module function to execute
**kwargs
Pass any arguments needed to execute the function

Parent topic

Table Of Contents

Previous topic

salt.states.makeconf

Next topic

salt.states.mongodb_database