Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Confine custom fact to only execute on Linux systems
This module can also be used to configure Foreman SCAP clients via an external Puppet server, separate to Foreman/Satellite. Because an external Puppet server may also manage Windows systems, the Windows systems attempt to resolve this fact and it produces this error in Puppet run logs: "Facter Error while resolving custom fact fact='rh_certificate', resolution='': break from proc-closure" This can be easily avoided by confining the custom fact to execute only for systems whose kernel fact value is "Linux". Reference: https://www.puppet.com/docs/puppet/8/custom_facts.html#confining-facts
- Loading branch information