(MODULES-11123) Avoid loading puppet facts in install/windows.pp
#577
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The install puppet command in
manifests/install/windows.pp
is executed if the desired version is not already installed. This is done by asking facter the value of theaio_agent_version
fact on the target node and is compared to expected package version.Before this commit, facter was asked to also load puppet facts (using the
-p
parameter) which was causing high load times due to unnecessary facts getting loaded and resolved when currently installed puppet agent version was the only information needed.This fix removes the puppet facts loading for this command requirement and lowers catalog application time by as much as half in some scenarios. In our minimal and default environment we got the following output on a Windows node:
❌ Before fix:
✅ After fix: