-
Notifications
You must be signed in to change notification settings - Fork 211
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
Reset some more ruby/gem env-variables before running "puppet" #185
Conversation
@njam Could you post a full stack trace to your example error? Also, which version of Vagrant are you running? Do you use the vagrant-librarian-puppet plugin? |
Yes, using the vagrant-librarian-puppet plugin.
Vagrant error output:
With the The inherited gem/ruby environment breaks the system's "puppet" (which is installed with "gem" as well). |
@njam Your environment is not "clean". The stack trace shows a mix of a Homebrew installed ruby ( |
@ringods This stack trace is the output of the |
@njam Regarding the environment variables, maybe it is time to switch the approach: instead of removing the variables we don't need, start with an empty hash and only add the ones we do need, e.g. Regarding your stack trace: I still think that your error stems from the mix up. You mention a system's puppet installed via gem. Puppetlabs advises system packages over RubyGems. When testing librarian-puppet standalone, I have a completely separate RVM+gemset with all the required gems in it, without pointing to Vagrant gems. |
So I think the actual root cause for this was the inheriting of the "bundler" configuration! I adjusted the changeset accordingly.
I understand the suggested way of installing puppet is with the provided packages. Unfortunately there's no simple installation via I thought about resetting the whole environment as well. But this can have undesired side effects as well. For example somebody might need some env variables for his system to behave correctly. |
@carlossg @ringods do you think this is mergeable? I can see a travis build for puppet "3.3.2" failing, where the puppet process dies with "killed thread". Do you have an idea why this is happening / who is killing the thread? |
@carlossg what do you think about merging this? |
Reset some more ruby/gem env-variables before running "puppet"
Thanks! |
Similar to #182 we're experiencing
puppet
not to run correctly,because some ruby/gem environment is inherited from vagrant's embedded ruby.
This is happening now that librarian-puppet doesn't depend/use the gem's puppet anymore.
Example error: