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

Use relative_require in artifactory functions #391

Merged
merged 1 commit into from
Dec 6, 2019

Conversation

alexjfisher
Copy link
Member

This doesn't seem to have been neccessary for all users and probably
depends on how puppetserver has ruby-load-path configured.
See https://tickets.puppetlabs.com/browse/SERVER-973?focusedCommentId=224547&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-224547

Requiring the library using an absolute path should help
https://tickets.puppetlabs.com/browse/SERVER-973?focusedCommentId=352751&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-352751

Note, any changes to util.rb will still result in horrible environment
isolation issues. A full fix would involve implementing
@trevor-vaughan's complete metaprogramming solution documented here.
https://www.onyxpoint.com/fixing-the-client-side-of-multi-tenancy-in-the-puppet-server

util.rb is somewhat more complicated than the example demonstrated, so
I've left that well alone for now.

Fixes #320

This doesn't seem to have been neccessary for all users and probably
depends on how puppetserver has `ruby-load-path` configured.
See https://tickets.puppetlabs.com/browse/SERVER-973?focusedCommentId=224547&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-224547

Requiring the library using an absolute path should help
https://tickets.puppetlabs.com/browse/SERVER-973?focusedCommentId=352751&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-352751

Note, any changes to util.rb will still result in horrible environment
isolation issues.  A full fix would involve implementing
@trevor-vaughan's complete metaprogramming solution documented here.
https://www.onyxpoint.com/fixing-the-client-side-of-multi-tenancy-in-the-puppet-server

util.rb is somewhat more complicated than the example demonstrated, so
I've left that well alone for now.

Fixes voxpupuli#320
@@ -14,7 +14,7 @@ def self.content(url, options = {})
end

#
# This allows you to use a puppet syntax for a file and return it's content.
# This allows you to use a puppet syntax for a file and return its content.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't help myself! ;)

@alexjfisher alexjfisher merged commit 3f65392 into voxpupuli:master Dec 6, 2019
@alexjfisher alexjfisher deleted the relative_require branch December 6, 2019 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not autoload puppet/parser/functions/artifactory_sha1: no such file to load -- puppet_x/bodeco/util
2 participants