Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2786

if a fact is present in two groups, it doesn't get cached if the second groups has a ttls

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Sub-team:
    • Story Points:
      3
    • Sprint:
      ghost-9.09, ghost-16.09, ghost-23.09, ghost-30.09
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      If a fact is present in two groups, and both of them have a ttls defined in facter.conf, the lowest ttls will be taken into account.
    • QA Risk Assessment:
      Needs Assessment

      Description

      `fact_groups.conf` contains predefined groups. e.g.

      {
      ...
      "operating system": [
      		"os",
                        ...
      	],
      ...
      }
      

      and we can create our own groups in `facter.conf`
      e.g.

      facts : {
        ttls : [
          { "my_groups" : 30 days },
        ]
      }
       
      fact-groups : {
          my_groups: ["os.name"],
      }
      

      When both groups contain the same fact, the fact gets cached only if the first group has TTLS. On the other hand, if only the second group has ttls, the fact won't get cached (because it is found in the first group and the TTLS for the first groups does not exist)

      FactGroups.get_fact_group is the method that detects the groups for a given fact.

        Attachments

          Activity

            People

            Assignee:
            florin.dragos Florin Dragos
            Reporter:
            bogdan.irimie Bogdan Irimie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support