Why can't I see my external facts from inside a Ruby script?

25 views
Skip to first unread message

Eric Rodriguez

unread,
May 5, 2016, 8:08:51 PM5/5/16
to Puppet Users
Running Facter v2.4.6, Puppet 3.8.6 on Ubuntu Trusty
One Puppet master host and one Agent

I have a custom Puppet report and I'd like to read some of my external Facts from within this report. I can see the external Fact from the cli and ALSO when running:

ruby -e "require 'facter'; puts Facter.value(:external_fact)"


I don't understand why this is. My external facts are in /etc/facter/facts.d/external.json.

Any idea what I am doing wrong here? Why can't I see this custom Fact from a Puppet report?

Thanks...
Reply all
Reply to author
Forward
0 new messages