You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To pass kwargs through states.module.run (and states.module.wait) one must pass them in a very specific way. They must be a dict in the options to run, passed under the variable corresponding to the underlying module you wish to run's kwargs name.
For example, mysql.query is defined as query(database, query, **connection_args), so you must put in the jinja:
The connection_host gives away why this is important - I am trying to override the mysql connection parameters in salt master (which are set up for a returner).
This is highly uninituitive as usually kwargs are siblings of the other args.
The text was updated successfully, but these errors were encountered:
Thanks for this report! We'll get this fixed. I wonder how easy it would be to allow for sibling args, as you mentioned? But we'll fix the documentation either way.
salt 'minion' lxc.create name [config=config_file] \
[profile=profile] [template=template_name] \
[backing=backing_store] [ vgname=volume_group] \
[size=filesystem_size] [options=template_options]
It's not clear that in the case of the CLI you must provide the template_name as "template="
and then in the "sls" file it is required as a dictionary entry inside "options"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
To pass kwargs through
states.module.run
(andstates.module.wait
) one must pass them in a very specific way. They must be a dict in the options torun
, passed under the variable corresponding to the underlying module you wish to run's kwargs name.For example,
mysql.query
is defined asquery(database, query, **connection_args)
, so you must put in the jinja:The
connection_host
gives away why this is important - I am trying to override the mysql connection parameters in salt master (which are set up for a returner).This is highly uninituitive as usually kwargs are siblings of the other args.
The text was updated successfully, but these errors were encountered: