dmulyalin / salt-nornir

SALTSTACK Nornir based proxy minion, execution, state and runner modules
MIT License
27 stars 3 forks source link

[FEATURE REQUEST] execute custom salt python modules from workflow and return a pass/fail #30

Closed bodleytunes closed 1 year ago

bodleytunes commented 1 year ago

Not sure if this one is actually possible but I was thinking would be nice to be able to integrate custom salt execution modules into the nr.workflow system in the following way.

Its already possible to call custom modules but they always return a pass.

It would be nice if say you were given a specific set of return data to return from the custom module, that it would be possible to return a true pass/fail from the custom module.

E.g. I have a few custom modules that might do something adhoc like upload some config backups to a nextcloud server and based on the results of that I might not want the next steps to run, so i I can return a data structure that it expects from the custom module, it would be nice to get a true pass/fail from it to integrate it into the workflow properly.

Thanks, Jon.

bodleytunes commented 1 year ago

Not needed as can use nr.task feature.