On Tue, Sep 7, 2010 at 1:59 PM, James Cammarata <[email protected]> wrote: > > I'm trying to setup a module to deploy custom facts, and I'm running into > some issues. > > I've created a directory called "custom" in my modules directory, and > created sub-directories there so I have custom/lib/facter (as is described > in the documentation). > > On my puppetmaster, I've added this to fileserver.conf: > > [plugins] > allow * > > In puppet.conf for the client I've added this to the [main] section, also > per the docs: > > pluginsync = true > factpath = $vardir/lib/facter > > However, when I run puppetd, I get the following error: > > err: /File[/var/lib/puppet/lib]: Failed to generate additional resources > using 'eval_generate': Error 400 on SERVER: private method `gsub' called > for nil:NilClass > > > The only way to get rid of this error is to set the libdir variable, which > I don't think is right. Can anyone point out what I'm doing wrong here? > The documentation on custom facts is pretty horrible, and is too much a > mish-mash of old vs new methods. >
So setting the factpath isn't enough? You're finding you need to set the libdir as well? What is the libdir set to with the above settings? (sudo puppetd --configprint libdir) What puppet versions are you running? I don't believe you need a [plugins] mountpoint defined. With 0.25.x I don't have one, and modules/*/lib/facter syncs quite happily. > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > -- > 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. > > -- 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.
