Hi On Dec 1, 10:14 am, Arnau Bria <[EMAIL PROTECTED]> wrote: > Then I restart master and client but I can't see my own fact: > > [EMAIL PROTECTED] ~]# facter primaryint > [EMAIL PROTECTED] ~]# > > it's copied in client /var/lib/puppet/lib/facter/primaryint.rb > > But, if I export RUBYLIB to /var/lib/puppet/lib/, facter sees it: > [EMAIL PROTECTED] puppet]# export RUBYLIB=/var/lib/puppet/lib/ > [EMAIL PROTECTED] puppet]# facter primaryint > eth0
That's correct. When you run facter on the command line it doesn't include facts in Puppet's factpath. I use Puppet to export the following to all hosts so command-line facter picks up my facts: [EMAIL PROTECTED] ~]# cat /etc/profile.d/facter.sh export FACTERLIB=/var/lib/puppet/facts [EMAIL PROTECTED] ~]# facter serial_tty # a custom fact serial_tty => ttyS1 Have you tried using $primaryint in a Puppet manifest? Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
