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. Is there better documentation out there? Something Debian specific? When I run puppetmasterd I see this in the output: info: Could not find filesystem info for file ''plugins'' in environment production I have these directories: drwxr-xr-x 2 puppet puppet 4096 2010-02-01 10:14 facter drwxr-xr-x 5 puppet puppet 4096 2010-02-01 10:00 ../lib/ drwxr-xr-x 2 puppet puppet 4096 2010-02-01 09:09 provider drwxr-xr-x 2 puppet puppet 4096 2010-02-01 09:09 type I have also put the directory structure in /etc/puppet/lib etc. etc. On the client I see: err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: Could not retrieve information from source(s) puppet://puppet/plugins I have tried many different combinations of options in the config files, so I am not sure what good posting my configs would do, also they are default right now anyways (what came with the debian package at install). I think there is just too much here I do not understand, can someone suggest a great documentation reference for puppet? The existing wiki pages on this topic are just not good enough for me. I am willing to update them, but I need to understand this first. Brian, -- 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.
-----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: [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-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, Feb 1, 2010 at 12:52 PM, James Turnbull <james@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-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. > >-- 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-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.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/02/10 8:46 AM, Nigel Kersten wrote:>> 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. >Yeah I think you''re right. I am going to rewrite that whole page using a step-by-step. James - -- 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/ iQEVAwUBS2dMSiFa/lDkFHAyAQJlzwgAuGaDWDpj2p7PEPGxxXEoTv+ELRXbJVJP +1gKrosl35gk2FR8lQjTqFtUHFooirV0bxw+B6pYMWN17du87+ikJ4tjZutsahZ6 0QQEfPDqfOVyDaLyrIYdfRsE4jX+wUcogg76tBBvzM+f8plFTGmQ6pRHG3gbWpLy gScOV7bT2qO8te48sgT5poNdKkn65AgYEsoLA1GGnO7JZWo4vmhYNZc4N/GSj1DK 7SpO3Xf8sxYRXWxnYWaixBTc+TsbanqP7EjzR0z1uN9qVQKXqxNEOdiyM7iQpnVv yI9YnDTUAA+2Oi/bUmJ3rXO8K1sGzttrf0oFFpEjqmzUDY9QaeSKpQ==Rw+6 -----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-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.
Hi, Nigel Kersten wrote:> 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.The [plugins] mount point is optional: I don''t even have a fileserver.conf file on my Puppet Master and I can push custom facts without a problem. cYa, Avi -- 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.
> 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: > > [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 TurnbullThat worked like a champ! Thank you very much, that was getting very frustrating. -- 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.
> 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: > > [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 TurnbullThat worked like a champ! Thank you very much, that was getting very frustrating. -- 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.