Details
Description
As we are developing CMDB, we see the need for a human readable description / explanation of what each variable / class means. This should map to the existing comment attribute in policy:
bundle agent host_info_report { vars: "host_info_report_template" string => "/var/cfengine/templates/example.mustache", meta => {"inventory", "attribute_name=Report template location"}, comment => "Where the report template is found"; }
In augments / CMDB (json) it should be like this:
{ "variables": { "host_info_report_template": { "value": "/var/cfengine/templates/example.mustache", "meta": [ "inventory", "attribute_name=Report template location" ], "comment": "Where the report template is found" } } }
And the same for classes:
bundle agent bundle_for_enabling_autorun { classes: "enable_autorun" meta => { "report" }, comment => "Enables automatic evaluation of policy in the autorun directory"; }
and in JSON:
{ "classes": { "enable_autorun": { "meta": [ "report" ], "comment": "Enables automatic evaluation of policy in the autorun directory" } } }
Attachments
Issue Links
- is blocked by
-
CFE-3633 Need to allow meta tags for variables and classes in augments / cmdb
-
- Done
-