Jira (FACT-2837) Unable to block memory/swap tree via blocklist

15 views
Skip to first unread message

Lukas Zapletal (Jira)

unread,
Oct 15, 2020, 10:10:03 AM10/15/20
to puppe...@googlegroups.com
Lukas Zapletal created an issue
 
Facter / Bug FACT-2837
Unable to block memory/swap tree via blocklist
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/10/15 7:09 AM
Priority: Normal Normal
Reporter: Lukas Zapletal

Hello, I would like to block the whole memory->swap tree but documentation is sparse on how to block structured facts. All the examples are only for flat (legacy) facts. Can you give me an advice and improve docs? Is this even supported? Thanks.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Bogdan Irimie (Jira)

unread,
Oct 16, 2020, 3:00:03 AM10/16/20
to puppe...@googlegroups.com
Bogdan Irimie commented on Bug FACT-2837
 
Re: Unable to block memory/swap tree via blocklist

Hi Lukas Zapletal

Can you please let me know what version of facter are you using. You can obtain the facter version by running

facter --version

Lukas Zapletal (Jira)

unread,
Oct 16, 2020, 3:10:02 AM10/16/20
to puppe...@googlegroups.com

Hello Bogdan! It's 4.0.38 but I was also searching in git repo to find out some examples.

Bogdan Irimie (Jira)

unread,
Oct 16, 2020, 3:47:03 AM10/16/20
to puppe...@googlegroups.com

Lukas Zapletal Facter 4 documentation is in the works, but for your case please try facter.conf  https://puppet.com/docs/facter/3.11/configuring_facter.html

An example of facter.conf that works on facter 4 and should solve your issue

facts : {
  blocklist : [ "memory.swap" ]
}

Just some context. You can block/cache groups of facts or individual facts. To see the groups of facts that you can block please use `facter --list-block-groups`.

In addition to these groups you can block any fact, at any level of the fact hierarchy using the dot notation) e.g.

facts : {
  blocklist : [ "memory" ]
}

  • will block all memory facts

facts : {
  blocklist : [ "memory.swap" ]
}

  • will block all memory swap facts

facts : {
  blocklist : [ "memory.swap.available" ]
}

  • will block only the available fact from swap 

 

There is even a more advance feature in Facter 4 that allows you to define your own groups and then block/cache them. Let me know if you are interested in this and I will provide more details.

Bogdan Irimie (Jira)

unread,
Oct 16, 2020, 3:51:02 AM10/16/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
 
Change By: Bogdan Irimie
Sub-team: ghost
Team: Night's Watch
Affects Version/s: FACT 4.0.38

Bogdan Irimie (Jira)

unread,
Oct 16, 2020, 3:52:03 AM10/16/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Oct 16, 2020, 3:52:03 AM10/16/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Oct 16, 2020, 3:53:03 AM10/16/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: PR - Triage ready for triage

Lukas Zapletal (Jira)

unread,
Oct 16, 2020, 4:21:03 AM10/16/20
to puppe...@googlegroups.com

Bogdan Irimie (Jira)

unread,
Oct 16, 2020, 5:58:02 AM10/16/20
to puppe...@googlegroups.com

We are very excited about Facter 4, so please feel free to reach out if you have any issues / suggestions. You can do this by joining our slack channel https://puppetcommunity.slack.com/archives/C0W1X7ZAL or by opening a ticket.

Josh Cooper (Jira)

unread,
Dec 2, 2020, 2:21:04 PM12/2/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug FACT-2837

Which facter version was this fixed in?

Reply all
Reply to author
Forward
0 new messages