Hi, I wrote a custom facter called active_interface and put in /etc/puppet/ modules/networking/lib/facter directory. Then I did "export RUBYLIB=/etc/puppet/modules/networking/lib" on puppet master. On puppet master, it works. facter active_interface eth0 But on client, it did not even seem to try to pull it from master. The log does not show any event related. Do I miss something? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, May 23, 2011 at 2:06 PM, hyzhang <hyzhang@jcvi.org> wrote:> Hi, > > I wrote a custom facter called active_interface and put in /etc/puppet/ > modules/networking/lib/facter directory. > Then I did "export RUBYLIB=/etc/puppet/modules/networking/lib" on > puppet master. > > On puppet master, it works. > facter active_interface > eth0 > > But on client, it did not even seem to try to pull it from master. The > log does not show any event related. > > Do I miss something?Enable pluginsync option on the the client puppet.conf, and test on the client with the command facter -p. HTH, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I enable pluginsyn. But still not working. I am attaching the message here: Retrieving plugin May 24 15:46:22 puppetclient1 puppet-agent[23314]: (/File[/var/lib/ puppet/lib]) Failed to generate additional resources using ''eval_generate'': Connection refused - connect(2) May 24 15:46:22 puppetclient1 puppet-agent[23314]: (/File[/var/lib/ puppet/lib]) Could not evaluate: Connection refused - connect(2) Could not retrieve file metadata for puppet://puppetmaster1/plugins: Conn ection refused - connect(2) May 24 15:46:23 puppetclient1 puppet-agent[23314]: Could not retrieve catalog from remote server: Connection refused - connect(2) May 24 15:46:23 puppetclient1 puppet-agent[23314]: Not using cache on failed catalog May 24 15:46:23 puppetclient1 puppet-agent[23314]: Could not retrieve catalog; skipping run May 24 15:46:23 puppetclient1 puppet-agent[23314]: Could not send report: Connection refused - connect(2) I can not figure out what is wrong. Help!! -Haiyan On May 23, 5:26 pm, Nan Liu <n...@puppetlabs.com> wrote:> On Mon, May 23, 2011 at 2:06 PM, hyzhang <hyzh...@jcvi.org> wrote: > > Hi, > > > I wrote acustomfactercalled active_interface and put in /etc/puppet/ > > modules/networking/lib/facterdirectory. > > Then I did "export RUBYLIB=/etc/puppet/modules/networking/lib" on > > puppet master. > > > On puppet master, it works. > >facteractive_interface > > eth0 > > > But on client, it did not even seem to try to pull it from master. The > > log does not show any event related. > > > Do I miss something? > > Enable pluginsync option on the the client puppet.conf, and test on > the client with the commandfacter-p. > > HTH, > > Nan-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Denmat
2011-May-24 20:53 UTC
Re: [Puppet Users] Re: custom facter does not show up on client
Hi, Can you confirm you can connect to the puppetmaster from the client? Also on the command line on the client you have to specify --server <servername>. To verify puppet master to client connectivity try: openssl s_client -connect <servername>:8140 Cheers, Den On 25/05/2011, at 5:53, hyzhang <hyzhang@jcvi.org> wrote:> I enable pluginsyn. But still not working. I am attaching the message > here: > > Retrieving plugin > May 24 15:46:22 puppetclient1 puppet-agent[23314]: (/File[/var/lib/ > puppet/lib]) Failed to generate additional resources using > ''eval_generate'': Connection refused - connect(2) > May 24 15:46:22 puppetclient1 puppet-agent[23314]: (/File[/var/lib/ > puppet/lib]) Could not evaluate: Connection refused - connect(2) Could > not retrieve file metadata for puppet://puppetmaster1/plugins: Conn > ection refused - connect(2) > May 24 15:46:23 puppetclient1 puppet-agent[23314]: Could not retrieve > catalog from remote server: Connection refused - connect(2) > May 24 15:46:23 puppetclient1 puppet-agent[23314]: Not using cache on > failed catalog > May 24 15:46:23 puppetclient1 puppet-agent[23314]: Could not retrieve > catalog; skipping run > May 24 15:46:23 puppetclient1 puppet-agent[23314]: Could not send > report: Connection refused - connect(2) > > I can not figure out what is wrong. > > Help!! > > -Haiyan > > > > > > On May 23, 5:26 pm, Nan Liu <n...@puppetlabs.com> wrote: >> On Mon, May 23, 2011 at 2:06 PM, hyzhang <hyzh...@jcvi.org> wrote: >>> Hi, >> >>> I wrote acustomfactercalled active_interface and put in /etc/puppet/ >>> modules/networking/lib/facterdirectory. >>> Then I did "export RUBYLIB=/etc/puppet/modules/networking/lib" on >>> puppet master. >> >>> On puppet master, it works. >>> facteractive_interface >>> eth0 >> >>> But on client, it did not even seem to try to pull it from master. The >>> log does not show any event related. >> >>> Do I miss something? >> >> Enable pluginsync option on the the client puppet.conf, and test on >> the client with the commandfacter-p. >> >> HTH, >> >> Nan > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.