forked from hbuckle/puppet-powershellmodule
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require
puppet_x/helper.rb
based on full path
Not all code ends up in Puppet Ruby LOAD_PATH. We are running a fleet of Puppet 6.20.0 and Puppet 7.3.0 nodes, which cannot autoload `puppet/provider/package/windowspowershell` as there is no such file to load -- `puppet_x/encore/powershellmodule/helper`. Using a dynamically expanded path from the `lib/puppet/` files seems to very much so do the trick. There was a 2012 O'Reilly book talking about this as well. Might not be the newest and greatest solution, as it would be possible to work with LOAD_PATH, but this solves the underlying catalog generation error. Book: Puppet Types and Providers: Chapter 4: Shared Libraries > https://www.oreilly.com/library/view/puppet-types-and/9781449339319/ch04.html
- Loading branch information
Showing
7 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters