Dear Maxim,
/etc/facter/facts.d and /usr/lib/ruby/site_ruby/1.8/facter/ are used for
two completely different kinds of scripts that cannot be mixed.
/etc/facter/facts.d contains either text files with *static* facts OR
executable *programs* returning a specific text format.
/usr/lib/ruby/site_ruby/1.8/facter/ contains autoloaded ruby code that
is loaded into facter and produces a value internally.
Since these two locations are handled completely differently, linking or
copying from one location to the other cannot work.
Please see the custom fact documentation for more details:
http://docs.puppetlabs.com/guides/custom_facts.html
Regards, David
On 2014-07-21 13:51, Maxim Nikolaev wrote:
The problem is not fact script. I I run it from
/usr/lib/ruby/site_ruby/1.8/facter/ it's working. When I set it to
/etc/facter/facts.d - I get errors. More. If I make link from
/etc/facter/facts.d to /usr/lib/ruby/site_ruby/1.8/facter/ also other
fact scripts fail.
On Tuesday, July 15, 2014 5:10:59 PM UTC+3, Maxim Nikolaev wrote:
I have strange experience with facter on newly installed servers.
Puppet: 3.6.2
Facter: 2.1.0
OS: Amazon Linux
when I set custom fact to /etc/facter/facts.d and run facter locally
I get following error
Fact file /etc/facter/facts.d/services.rb was parsed but returned an
empty data set
When I copy same file to
/usr/lib/ruby/site_ruby/1.8/facter/
and run same command - facter works ok.
Can someone advise why thi can happen?
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to puppet-users+unsubscr...@googlegroups.com
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/14146309-82e9-44f2-bf77-0a277057534e%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/14146309-82e9-44f2-bf77-0a277057534e%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
* Always looking for people I can help with awesome projects *
G+: https://plus.google.com/+DavidSchmitt
Blog: http://club.black.co.at/log/
LinkedIn: http://at.linkedin.com/in/davidschmitt
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/53CD25B6.90008%40dasz.at.
For more options, visit https://groups.google.com/d/optout.