On Mon, Feb 1, 2010 at 12:52 PM, James Turnbull <ja...@lovedthanlost.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 2/02/10 2:59 AM, Brian Schrock wrote: >> I have built my own fact to add to facter. When I manually put the >> script in /usr/lib/ruby/1.8/facter it works fine. I can run facter and >> I see the output from my script. >> >> My problem is I cannot get puppetmasterd to distribute the fact to my >> clients. >> >> Debian Lenny. >> >> Client version of puppet: 0.25.1-2~bpo50+1 >> Server version of puppet: 0.25.1-3 >> >> I have read http://reductivelabs.com/trac/puppet/wiki/PluginsInModules >> over and over again, but it does not make sense to me. > > So this is what you need: > > 1. Put your fact into a module - let's call it "custom". > > $ mkdir -p /etc/puppet/modules/custom/{manifests,lib} > $ mkdir -p /etc/puppet/modules/custom/lib/facter > $ touch /etc/puppet/modules/custom/manifests/init.pp > > 2. Copy your fact into /etc/puppet/modules/custom/lib/facter > > 3. Check fileserver.conf to make sure the [plugins] mount is there > but has NO path statement - something like:
I think this is the bit confusing people. The wiki makes it sound like the [plugins] mountpoint is optional, and you only need to worry about removing the path parameter if you already have a plugins mountpoint. > > [plugins] > allow *.lovedthanlost.net > > 4. Configure puppet.conf > > [main] > pluginsync = true > factpath = $vardir/lib/facter > > And that's it. > > Can you let me know how that goes? > > Regards > > James Turnbull > > - -- > Author of: > * Pro Linux System Administration (http://tinyurl.com/linuxadmin) > * Pulling Strings with Puppet (http://tinyurl.com/pupbook) > * Pro Nagios 2.0 (http://tinyurl.com/pronagios) > * Hardening Linux (http://tinyurl.com/hardeninglinux) > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEVAwUBS2c++iFa/lDkFHAyAQKi/wf9Hi4GSg8CCxfAiBlbe7C9pZWNvAZwhNDq > r2p/Hb6/sJhB42crN+26bgXdvqEebfeqdGxCn9SyET9NGPofb6U/2gopuyAXc5KH > r/yL0wLKF7Xq1jiqiOHLy3Y9FdmdPPr8iloA5e6JnVEUg1TxXHXXllTESnP98lR7 > yTknG+0QDllgZAQ4V5TOaQOlDPdd2P6RFD5/o0Uz6ZpOWoQxROGNLealGRe4762/ > f66D/OWglnwMfDvtDR0jHG1JWeBn/wiCjKTQ9auiQ6841XXmPaeUT21proSVQDth > 9bu/q3OUj8eff/9Jd+x5PfWS59n+An4xkUM5QWapLNIY3EfU/1exlA== > =Pe84 > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- nigel -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.