Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-2962

(maint) Missing implicit inventory relationships

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDB 4.2.4
    • Component/s: None
    • Labels:
      None
    • Template:
    • Story Points:
      1

      Description

      (maint) Missing implicit inventory relationships

      This adds relationships from environment and node entities to inventory to
      behave in a similar way to factsets. This allows implicit subqueries to work.

      Without this patch you cannot do queries of this nature:

      nodes { inventory { facts.operatingsystem = "CentOS" } }
      

      Instead you are forced to use explicit querying:

      nodes { certname in inventory[certname] { facts.operatingsystem = "CentOS" } }
      

      Which is a lot more verbose and should be unnecessary.

      Signed-off-by: Ken Barber <ken@bob.sh>

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                gepetto-bot gepetto-bot
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support