Closed tehsu closed 5 years ago
Hey @tehsu ! Did you manage to get it working when using the state.sls
function?
I did, I had to use the fork from here, https://github.com/apenvern/salt-step
I compiled it with some changes to the defaultReturners.yml, but it works perfectly now. I can provide the changes that I made.
Cool! Yes, if you could provide them that would be great. Thanks!
All you need to change is the defaultReturners.yaml, it has state.highstate: *alwaysSuccessful, copy it and change it to state.sls
yeah, just tested and it works, thought it was something more involved :) thanks for your quick reply! almost lost a day on this :(
better than me, I lost a week
This needs to be merged, https://github.com/rundeck-plugins/salt-step/pull/19. It's the correct fix. Closing my ticket.
I'm trying to figure out what to add to fix this issue to the returners, I figured the default ones would cover this but doesn't look like it, I added state.sls to the configuration and recompiled the jar.
[salt.state ][INFO ] {'pid': 7435, 'retcode': 0, 'stderr': '', 'stdout': '.'}
Would this parser work here?
defaultCommandParser: &defaultCommandParser !!org.rundeck.plugin.salt.output.SaltJsonReturnHandler {exitCodeKey: retcode, standardOutputKey: stdout, standardErrorKey: stderr}