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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/14146309-82e9-44f2-bf77-0a277057534e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
