Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mock facter version based on puppet version #600

Merged
merged 1 commit into from
Nov 1, 2019

Conversation

bastelfreak
Copy link
Member

Getting the correct facter version is tricky. We use facterdb as a source to
mock facts see https://github.com/camptocamp/facterdb. People might provide a
specific facter version. In that case we use it. Otherwise we need to match the
correct facter version to the used puppet version. As of 2019-10-31, puppet 5
ships facter 3.11 and puppet 6 ships facter 3.14
(see https://puppet.com/docs/puppet/5.5/about_agent.html).

This was tested at voxpupuli/puppet-nginx#1355

Getting the correct facter version is tricky. We use facterdb as a source to
mock facts see https://github.com/camptocamp/facterdb. People might provide a
specific facter version. In that case we use it. Otherwise we need to match the
correct facter version to the used puppet version. As of 2019-10-31, puppet 5
ships facter 3.11 and puppet 6 ships facter 3.14
(see https://puppet.com/docs/puppet/5.5/about_agent.html).

This was tested at voxpupuli/puppet-nginx#1355
@bastelfreak bastelfreak added the bug label Nov 1, 2019
@bastelfreak bastelfreak self-assigned this Nov 1, 2019
@bastelfreak bastelfreak merged commit 0a9bc81 into voxpupuli:master Nov 1, 2019
@bastelfreak bastelfreak deleted the facter branch November 1, 2019 11:36
baurmatt added a commit to syseleven/puppet-wireguard that referenced this pull request Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants