--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/1952fc38-63cb-42c4-8279-1a1ac940616en%40googlegroups.com.
Bryan Burke <bbu...@baburke.net> writes:
Thank you, Nick! Yes, this appears to be what I was looking for; not sure why I couldn't find it before.
I added nodes for modules to the rendered MPF docs.
If you would like to contribute to the modules docs please make PRs here.
As for the second question: "it looks like the update mechanism is a lot more flexible these days, and I'm wondering if I really need to do what I'm doing anymore. Is that possible, and are there any pointers to doing so?"
looking at that file, I get some hints on how to hook in my own update mechanism. Seems that if it's defined, it is used completely in place of the normal update mechanism? Still not sure how well the whole thing would work without a policy_hub defined, but I can maybe try it out sometime soon. Any docs that describe this, or should I just be looking at the masterfiles source?
Yes, we have really tried to make it easy to hook into the MPF and change it's behavior without having to resort to modifying the vendored policy. Instrumenting a custom update policy is pretty straight forward, if you have some suggestions for where docs for this need to be improved feel free to open a pr or at least share a link to where in the docs and then some suggested verbiage so someone else can get it added.
You can define your own update mechanism by:
That should be all you need to do.
--
Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech