If you write your bash script in Ruby (maybe ask chatgpt to do it) and put
it in your class in the folder lib/facter your next puppet run will
automatically update the facts and it will be available.
Best you read this page;
https://www.puppet.com/docs/puppet/6/custom_facts.html
On Thursday, 3
My experiences are with Puppet enterprise, but most of this should port
directly over to your needs.
Early on, I created a module of my own $org_custom_facts, so that I could
keep all of them together, when they weren't part of some other specific
module.
If you want to write a shell script, l