Problem:
I’ve been reading docs all day and am very confused how to get a custom_fact.rb to work with foreman.
I’m following the guide Custom facts overview - using the --custom-dir method but fail to see how to get it to work with foreman Expected outcome:
Foreman and Proxy versions:
Foreman 3.3
Proxy 3.3 Foreman and Proxy plugin versions:
I use to get facts from RHSM (red hat logo), but after my custom facts module, I’m getting facts from puppet (P logo). Have you encountered the same thing as well?
Right, so I’ve since learnt that there are multiple ways to get facts, puppet/ansible/rhsm.
Is there no means of custom dynamic facts for RHSM since it’s already there, I don’t want to muddle it with other methods. AFAIK I can set a static custom_facts.fact in /etc/rhsm/facts in the client host.
This has two problems:
It’s not dynamic, I want to check the content of a file in a client. Specifically see if a host has excluded something in yum.conf
How would I deploy this to the rest of my hosts and future to-be-registered hosts?