Skip to content

Commit 3ba78cb

Browse files
committed
README.md: Document facter_version_for_puppet_version()
1 parent eb9d229 commit 3ba78cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ end
7878

7979
## Specifying a default Facter version
8080

81-
By default, `on_supported_os` will return the facts for the version of Facter
82-
that it has loaded (usually this is Facter 2.5.1). This behaviour can be
83-
overridden by setting the `default_facter_version` RSpec setting in your
84-
`spec/spec_helper.rb` file.
81+
By default, `on_supported_os` will return the facts for the version of Facter that it has loaded. It will check for the loaded Puppet version and maps that to the Facter version that Perforce released in the matching AIO.
82+
The mapping is stored in `ext/puppet_agent_components.json` (check the [maintenance](#maintenance) section for details) and computated in the `facter_version_for_puppet_version` method.
83+
This behaviour can be overridden by setting the `default_facter_version` RSpec setting in your `spec/spec_helper.rb` file.
8584

8685
```ruby
8786
RSpec.configure do |c|

0 commit comments

Comments
 (0)