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

Error loading fact /var/lib/puppet/lib/facter/jenkins.rb no such file to load -- json #166

Closed
jchristi opened this issue Aug 22, 2014 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@jchristi
Copy link
Contributor

This is similar to #132, but not exactly. lib/facter/jenkins.rb has the following line:

require 'json'

This gem is not installed by default on my IT org's RHEL 6.5 VMs (Puppet 2.7.23, Facter 1.6.18, Ruby 1.8.7). To resolve, I had to either manually yum install -y rubygem-json or add:

  package { 'rubygem-json': }

to my manifest. Is the use of the json gem necessary? If so, can we add the above puppet line for RHEL into init.pp or package.pp?

@rtyler
Copy link

rtyler commented Sep 14, 2014

@jchristi we could, I'm kind of surprised that the json gem isn't already a dependency of 2.7.23 o_O.

For installations like Puppet Enterprise installs, I'm not sure how this should be handled because there's a different Ruby other than the system Ruby that's used.

@rtyler rtyler modified the milestone: 1.2.0: Nestor Sep 22, 2014
@rtyler rtyler added the bug Something isn't working label Sep 22, 2014
@rtyler rtyler closed this as completed in 28c7fe8 Sep 22, 2014
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

No branches or pull requests

2 participants