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

(FACT-2880) fact: call Puppet within setcode block #511

Merged
merged 1 commit into from
Dec 3, 2020
Merged

(FACT-2880) fact: call Puppet within setcode block #511

merged 1 commit into from
Dec 3, 2020

Conversation

bastelfreak
Copy link
Member

This change is a result of https://tickets.puppetlabs.com/browse/FACT-2880

previous to this change, we called Puppet outside the setcode block.
This works fine on Facter 3. On Facter 4 this sets the service_provider
fact to base. Moving the code into the setcode block fixes it.

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak added the bug Something isn't working label Dec 2, 2020
@bastelfreak bastelfreak self-assigned this Dec 2, 2020
@bastelfreak
Copy link
Member Author

I tested this on Facter 3 and Facter 4, both work fine. I'm still waiting for feedback in https://tickets.puppetlabs.com/browse/FACT-2880 if this should be changed or if it's only a workaround for Facter 4.

This change is a result of https://tickets.puppetlabs.com/browse/FACT-2880

previous to this change, we called Puppet outside the setcode block.
This works fine on Facter 3. On Facter 4 this sets the service_provider
fact to `base`. Moving the code into the setcode block fixes it.
@bastelfreak
Copy link
Member Author

okay, turns out it should always be in the setcode

@ekohl ekohl merged commit de9f1d4 into voxpupuli:master Dec 3, 2020
@bastelfreak bastelfreak deleted the puppet7 branch December 3, 2020 16:12
@der-eismann
Copy link

Is there an ETA for the next release to include this PR?

@bastelfreak
Copy link
Member Author

mhm tricky. we already have backwards incompatible changes merged to master. to reduce the amount of major releases I would like to include more of those changes, for example updating the exporters to latest version. If you would like to help that would be awesome. Most of the versions are listed in https://github.com/voxpupuli/puppet-prometheus/blob/master/data/defaults.yaml . they need to be updated to their latest version and the related acceptance tests in https://github.com/voxpupuli/puppet-prometheus/tree/master/spec/acceptance should be updated to match the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants