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
**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
**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

Comments

comments powered by Disqus

Parent topic

Table Of Contents

Previous topic

salt.states.kmod

Next topic

salt.states.mongodb_database