pepper icon indicating copy to clipboard operation
pepper copied to clipboard

Please add some example how to run survey.hash runner

Open viq opened this issue 7 years ago • 4 comments

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.

viq avatar Dec 09 '16 22:12 viq

This could be a question to @m03 ;)

viq avatar Dec 09 '16 22:12 viq

@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.

m03 avatar Dec 09 '16 22:12 m03

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. 💫

whiteinge avatar Dec 10 '16 00:12 whiteinge

JSON workaround in #98.

whiteinge avatar Dec 29 '16 19:12 whiteinge