Jira (FACT-2786) if a fact is present in two groups, it doesn't get cached if the second groups has a ttls

24 views
Skip to first unread message

Bogdan Irimie (Jira)

unread,
Aug 28, 2020, 7:34:04 AM8/28/20
to puppe...@googlegroups.com
Bogdan Irimie created an issue
 
Facter / Bug FACT-2786
if a fact is present in two groups, it doesn't get cached if the second groups has a ttls
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/08/28 4:33 AM
Labels: platform_7
Priority: Normal Normal
Reporter: Bogdan Irimie
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Aug 28, 2020, 7:42:02 AM8/28/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
`fact_groups.conf` contains predefined groups. e.g.
{code}
{
...
"operating system": [
  "os",
                  ...
],
...
}
{code}

and we can create our own groups in `facter.conf`
e.g.
{code}
facts : {
  ttls : [
    { "my_groups" : 30 days },
  ]
}

fact-groups : {
    my_groups: ["os.name"],
}
{code}

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)

Bogdan Irimie (Jira)

unread,
Aug 28, 2020, 7:45:03 AM8/28/20
to puppe...@googlegroups.com


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

Bogdan Irimie (Jira)

unread,
Sep 2, 2020, 9:24:03 AM9/2/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Sep 2, 2020, 9:24:03 AM9/2/20
to puppe...@googlegroups.com

Florin Dragos (Jira)

unread,
Sep 7, 2020, 3:43:03 AM9/7/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Sep 9, 2020, 9:08:04 AM9/9/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Sep 16, 2020, 9:11:03 AM9/16/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-9.09, ghost-16.09 , ready for triage 2

Bogdan Irimie (Jira)

unread,
Sep 23, 2020, 9:11:04 AM9/23/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-9.09, ghost-16.09, ghost-23.09 , ready for triage 2

Mihai Buzgau (Jira)

unread,
Nov 5, 2020, 9:39:03 AM11/5/20
to puppe...@googlegroups.com

Florin Dragos (Jira)

unread,
Nov 5, 2020, 4:24:03 PM11/5/20
to puppe...@googlegroups.com

Florin Dragos (Jira)

unread,
Nov 5, 2020, 4:31:04 PM11/5/20
to puppe...@googlegroups.com
Florin Dragos updated an issue
Change By: Florin Dragos
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.

Claire Cadman (Jira)

unread,
Nov 10, 2020, 6:04:03 AM11/10/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages