Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3638

CMDB augments / JSON files should support comment attribute

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.18.0
    • Component/s: None
    • Labels:
      None

      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

            Activity

              People

              Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              olehermanse Ole Herman Schumacher Elgesem
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: