pepper
pepper copied to clipboard
Please add some example how to run survey.hash runner
Could you show how to run using pepper something like salt-run survey.hash '*' pkg.list_upgrades refresh=True
?
Or maybe even salt-run survey.hash 'G@osfinger:debian-8' pkg.list_upgrades refresh=True match=complex
since that passes some parameters to module and some to runner.
This could be a question to @m03 ;)
@viq, though I'm not that familiar with the usage of survey.hash, more pepper
usage examples would be good in general. I'll see if I can come up with a few more to contribute in the next couple of days.
I think this will require the change in #94. Then I expect this syntax will work:
pepper --client runner survey.hash '*' pkg.list_upgrades refresh=True
Unfortunately the True
only works coincidentally because a string is truthy due to this bug: https://github.com/saltstack/salt/issues/38151 (Explanation.) So False
would not work.
That Salt change is probably a little way out, so the quickest workaround is a quick addition to Pepper to allow it to accept JSON. 💫
JSON workaround in #98.