Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add some example how to run survey.hash runner #96

Open
viq opened this issue Dec 9, 2016 · 4 comments
Open

Please add some example how to run survey.hash runner #96

viq opened this issue Dec 9, 2016 · 4 comments

Comments

@viq
Copy link

viq commented Dec 9, 2016

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
Copy link
Author

viq commented Dec 9, 2016

This could be a question to @m03 ;)

@m03
Copy link
Contributor

m03 commented Dec 9, 2016

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

@whiteinge
Copy link
Contributor

whiteinge commented Dec 10, 2016

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: saltstack/salt#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
Copy link
Contributor

JSON workaround in #98.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants