Re: Package Module Materialization

"'Nick Anderson' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
Bryan Burke <[email protected]> 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:

- Adding your custom update policy to update inputs
  - From the root of the MPF docs in the Reference manual: [Append to
    inputs used by update policy]
- Setting the name of the bundle to use for policy update
  - From the root of the MPF docs in the Reference manual: [Specify the
    agent bundle used for policy update]

That should be all you need to do.


[modules to the rendered MPF docs]
<https://docs.cfengine.com/docs/3.18/reference-masterfiles-policy-framework-modules.html>

[make PRs here]
<https://github.com/cfengine/documentation/blob/master/reference/masterfiles-policy-framework/modules.markdown>

[Append to inputs used by update policy]
<https://docs.cfengine.com/docs/3.18/reference-masterfiles-policy-framework.html#append-to-inputs-used-by-update-policy>

[Specify the agent bundle used for policy update]
<https://docs.cfengine.com/docs/3.18/reference-masterfiles-policy-framework.html#specify-the-agent-bundle-used-for-policy-update>

-- 
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/87lf0nmbj4.fsf%40northern.tech.

-- 
Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech

-- 
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/87lf0nmbj4.fsf%40northern.tech.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.