Questions about the promise modules protocol #4481
-
Hi everyone! I'd like to thank you for the addition of the new promise modules that allow powerful extension of CFEngine! I'm starting to implement some, and have a couple of questions about the modules and protocol specs. result_classesIn the python implementation I read:
But don't see that mentioned in the specs (only the result field). Is it part of the protocol? action_policyIn the specs I read:
But when trying to use an action body I get:
promise_type parameterFor validation operation in JSON, the spec example gives: {"operation": "evaluate_promise", "log_level": "info", "promise_type": "git", "promiser": "/opt/cfengine/masterfiles", "attributes": {"repo": "https://github.com/cfengine/masterfiles"}} But when testing, it appears the Using a binary moduleThe interpreter parameter is mandatory, which makes using a binary promise module a bit weird. I managed to run it with:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Another one:
in the doc but |
Beta Was this translation helpful? Give feedback.
-
Hey, @amousset! Thanks for testing out promise modules, a complete overview of what is currently implemented and what is missing can be found in the epic: https://tracker.mender.io/browse/CFE-1939
Thank you for pointing this out. I have updated the spec here:
Correct, ticket to implement is here: https://tracker.mender.io/browse/CFE-3433
Created a bug ticket to fix this here: https://tracker.mender.io/browse/CFE-3563
Created a ticket to improve this: https://tracker.mender.io/browse/CFE-3562 Hope that helps! |
Beta Was this translation helpful? Give feedback.
Hey, @amousset!
Thanks for testing out promise modules, a complete overview of what is currently implemented and what is missing can be found in the epic:
https://tracker.mender.io/browse/CFE-1939
Thank you for pointing this out. I have updated the spec here:
#4482
Correct, ticket to implement is here: https://tracker.mender.io/browse/CFE-3433