Re: CFEngine Inventory

"'Nick Anderson' via help-cfengine" <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
Shane Ripley <[email protected]> writes:

Hi Shane,

      Greetings, I'm seeing a couple of errors from the CFE
      inventory policy:

         error: Failed to chdir into '/var/cfengine/cmdb'. (chdir:
      'No such file or directory') error: Can't stat file
      'me.json' on '10.112.0.63' in files.copy_from promise error:
      Method 'cfe_autorun_inventory_cmdb' failed in some repairs\

      /var/cfengne/cmdb doesn't exist in the community RPM
      packages, which seems like it should if its important, or at
      least the inventory code should create it if missing?

Ah, looking at this, I am surprised that it wasn't throwing errors
previously. No matter, this should have been removed. I opened
[CFE-3712] and will open a pull request to remove the related policy
shortly.

Thanks for asking about it.

      Also, what is the structure of me.json? I can't find any
      info in the docs about what it should contain.

The [docs for that can be found here] (but it will disappear after the
related changes are merged).

It's structure was similar to that of Augments, a JSON formatted file
with top level keys for /classes/ and /vars/.

      Is the inventory policy useful in the community version or
      is this only meant to be for Enterprise? If I completely
      disable it, i.e remove it from promises.cf will I be
      breaking some other functionality?

Yes, I think that inventory policy is useful, even in the community
version, though it's much /more/ useful when you have Enterprise
reporting and you can query for this information from a central place.
There are various variables and classes that get defined that you might
want to re-use from your own policy or perhaps to construct a report
like the one used by `cf-agent -b host_info_report'.

Nothing should break if you decide to completely remove it.


[CFE-3712] <https://tracker.mender.io/browse/CFE-3712>

[docs for that can be found here]
<https://docs.cfengine.com/docs/3.18/reference-masterfiles-policy-framework-inventory.html#cmdb>

-- 
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/8735shykz2.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/8735shykz2.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.