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

aix specific inventory is not loaded in bundle common inventory

    XMLWordPrintable

    Details

      Description

      inventory/aix.cf is never loaded because !aix is missing in the other_unix_os class.

      promises.cf
      bundle common inventory
      # @brief Set up inventory inputs
      #
      # This bundle creates the inputs for inventory bundles.
      #
      # Inventory bundles are simply common bundles loaded before anything
      # else in promises.cf
      #
      # Tested to work properly against 3.5.x
      {
        classes:
             "other_unix_os" expression => "!windows.!macos.!linux.!freebsd";
             "specific_linux_os" expression => "redhat|debian|suse|sles";
      
        vars:
      
          aix::
             "inputs" slist => { "inventory/any.cf", "inventory/generic.cf", "{color:#FF0000}inventory/aix.cf{color}", "inventory/os.cf" };
             "bundles" slist => { "inventory_control", "inventory_any", "inventory_autorun", "inventory_generic", "inventory_aix", "inventory_os" };
          other_unix_os::
             "inputs" slist => { "inventory/any.cf", "inventory/generic.cf", "inventory/os.cf" };
             "bundles" slist => { "inventory_control", "inventory_any", "inventory_autorun", "inventory_generic", "inventory_os" };
      
      # SNIP...
      }
      
      Proposed change in promises.cf
      classes:
       "other_unix_os" expression => "!windows.!macos.!linux.!freebsd.!aix";
      

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              grumpycat Christian Tremel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel