Jira (FACT-2331) Add the ability to cache and block the output of custom facts

16 views
Skip to first unread message

Oana Tanasoiu (JIRA)

unread,
Jan 30, 2020, 6:49:04 AM1/30/20
to puppe...@googlegroups.com
Oana Tanasoiu created an issue
 
Facter / New Feature FACT-2331
Add the ability to cache and block the output of custom facts
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2020/01/30 3:48 AM
Priority: Normal Normal
Reporter: Oana Tanasoiu

In the first round of Configurable Facter work, we added the ability to cache and block built-in facts via settings in the config file. There is also demand to be able to cache and block custom Ruby facts. Blocking should be straightforward, but to implement caching, some updates to the methods dealing with the fact cache are needed, since they currently assume resolvers are the source of all the fact data.

In order to keep the feel similar to resolvers, and in response to customer feedback, custom facts should specify a cache group in the form of a sort of tag in the fact, which can be used to cache or block any custom fact with that tag.

In addition, the output of the list-block-groups and list-cache-groups command line options need to be updated to also report custom facts available for caching and blocking.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Jul 21, 2020, 7:17:03 AM7/21/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Component/s: Facter 4
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Mihai Buzgau (Jira)

unread,
Jul 21, 2020, 7:19:03 AM7/21/20
to puppe...@googlegroups.com
Mihai Buzgau commented on New Feature FACT-2331
 
Re: Add the ability to cache and block the output of custom facts

Add an integration test to describe the blocking functionality.

Bogdan Irimie (Jira)

unread,
Aug 12, 2020, 4:58:03 AM8/12/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Aug 14, 2020, 9:24:03 AM8/14/20
to puppe...@googlegroups.com
Bogdan Irimie commented on New Feature FACT-2331
 
Re: Add the ability to cache and block the output of custom facts

Core, custom and external facts can be blocked and cached with the current implementation.
--list-block-groups and --list-cache-groups have been updated in FACT-2723 to display all the groups (default groups, user defined groups from `facter.conf` and user cli provided groups via the --custom-dir and --external-dir arguments)

Mihai Buzgau (Jira)

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

Bogdan Irimie (Jira)

unread,
Nov 5, 2020, 10:22:03 AM11/5/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Release Notes: Not Needed Enhancement
Release Notes Summary: Users can define their own custom groups in `facter.conf` using the new `fact-groups` group.
e.g.

...
fact-groups : {
  my_custom_group : ["my_custom_fact", "os.name" ]
}
...

`blocklist` and `ttls` groups from `facter.conf` accept predefined groups, custom groups or fact names (in the case of external facts, the file name should be used)

Claire Cadman (Jira)

unread,
Nov 10, 2020, 6:01:03 AM11/10/20
to puppe...@googlegroups.com
Claire Cadman updated an issue
Change By: Claire Cadman
Labels: doc_reviewed platform_7

Claudia Petty (Jira)

unread,
Jun 21, 2023, 8:44:02 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: doc_reviewed new-feature platform_7
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages