I am trying to get a custom fact to sync and have tried just about everything. I am trying to follow this: http://reductivelabs.com/trac/puppet/wiki/PluginsInModules I have put my custom fact in /etc/puppet-dev/manifests/classes/custom/ lib/facter puppet.conf on my puppetmaster looks like this [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet pluginsync=true server = puppetmaster.numerex.com environments = development,testing,production [puppetmasterd] certname=puppetmaster.numerex.com [puppetd] report = true [testing] modulepath = /etc/puppet-dev/manifests/classes templatedir=/etc/puppet-dev/templates manifest = /etc/puppet-dev/manifests/site.pp factpath = /etc/puppet-dev/facter pluginsync = true [production] modulepath = /etc/puppet/manifests/classes templatedir=/etc/puppet/templates manifest = /etc/puppet/manifests/site.pp And in fileserver.conf I have: [files] path /etc/puppet/files allow * [plugins] allow *.numerexfast.com [modules] allow *.numerexfast.com And on my puppet client it looks like this: [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter pluginsync=true server=puppetmaster.numerex.com environments=production,testing environment=testing [puppetmasterd] templatedir=/var/lib/puppet/templates [puppetd] report = true When I run puppetd --test on the client, I see the following error: nfo: Retrieving plugins err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: No specified source was found from puppet://puppetmaster.numerex.com/plugins And I cannot find my custom fact anywhere under /var/lib/puppet on the client What am I missing here? I assume that I should find the fact somewhere on the client. -- 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.
Could it be since you are not specifying a environment (puppetd --test --environment=development) that you have not defined your modulepath = /etc/puppet/modules at a global level that there is no idea where to find them? Thanks, derek On 2/4/10 10:06 AM, byron appelt wrote:> I am trying to get a custom fact to sync and have tried just about > everything. I am trying to follow this: > > http://reductivelabs.com/trac/puppet/wiki/PluginsInModules > > I have put my custom fact in /etc/puppet-dev/manifests/classes/custom/ > lib/facter > > puppet.conf on my puppetmaster looks like this > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > pluginsync=true > server = puppetmaster.numerex.com > environments = development,testing,production > > [puppetmasterd] > certname=puppetmaster.numerex.com > > [puppetd] > report = true > > [testing] > modulepath = /etc/puppet-dev/manifests/classes > templatedir=/etc/puppet-dev/templates > manifest = /etc/puppet-dev/manifests/site.pp > factpath = /etc/puppet-dev/facter > pluginsync = true > > > [production] > modulepath = /etc/puppet/manifests/classes > templatedir=/etc/puppet/templates > manifest = /etc/puppet/manifests/site.pp > > And in fileserver.conf I have: > > [files] > path /etc/puppet/files > allow * > > [plugins] > allow *.numerexfast.com > > [modules] > allow *.numerexfast.com > > > And on my puppet client it looks like this: > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > factpath=$vardir/lib/facter > pluginsync=true > server=puppetmaster.numerex.com > environments=production,testing > environment=testing > > [puppetmasterd] > templatedir=/var/lib/puppet/templates > > > [puppetd] > report = true > > > > When I run puppetd --test on the client, I see the following error: > > nfo: Retrieving plugins > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of > resource: No specified source was found from puppet://puppetmaster.numerex.com/plugins > > And I cannot find my custom fact anywhere under /var/lib/puppet on > the client > > What am I missing here? I assume that I should find the fact somewhere > on the client. >-- --- Derek T. Yarnell University of Maryland Institute for Advanced Computer Studies -- 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.
Thanks for the suggestion, but that doesn''t seem to be it. The environment is specified in the client puppet.conf, but I also tried specifying it on the command line as you suggested as well as specifying the module path at a global level. Neither produced any change. Any other ideas how i might troubleshoot this? Byron On Thu, Feb 4, 2010 at 10:21 AM, Derek Yarnell <derek@umiacs.umd.edu> wrote:> Could it be since you are not specifying a environment (puppetd --test > --environment=development) that you have not defined your > > modulepath = /etc/puppet/modules > > at a global level that there is no idea where to find them? > > Thanks, > derek > > On 2/4/10 10:06 AM, byron appelt wrote: >> >> I am trying to get a custom fact to sync and have tried just about >> everything. I am trying to follow this: >> >> http://reductivelabs.com/trac/puppet/wiki/PluginsInModules >> >> I have put my custom fact in /etc/puppet-dev/manifests/classes/custom/ >> lib/facter >> >> puppet.conf on my puppetmaster looks like this >> >> [main] >> logdir=/var/log/puppet >> vardir=/var/lib/puppet >> ssldir=/var/lib/puppet/ssl >> rundir=/var/run/puppet >> pluginsync=true >> server = puppetmaster.numerex.com >> environments = development,testing,production >> >> [puppetmasterd] >> certname=puppetmaster.numerex.com >> >> [puppetd] >> report = true >> >> [testing] >> modulepath = /etc/puppet-dev/manifests/classes >> templatedir=/etc/puppet-dev/templates >> manifest = /etc/puppet-dev/manifests/site.pp >> factpath = /etc/puppet-dev/facter >> pluginsync = true >> >> >> [production] >> modulepath = /etc/puppet/manifests/classes >> templatedir=/etc/puppet/templates >> manifest = /etc/puppet/manifests/site.pp >> >> And in fileserver.conf I have: >> >> [files] >> path /etc/puppet/files >> allow * >> >> [plugins] >> allow *.numerexfast.com >> >> [modules] >> allow *.numerexfast.com >> >> >> And on my puppet client it looks like this: >> >> [main] >> logdir=/var/log/puppet >> vardir=/var/lib/puppet >> ssldir=/var/lib/puppet/ssl >> rundir=/var/run/puppet >> factpath=$vardir/lib/facter >> pluginsync=true >> server=puppetmaster.numerex.com >> environments=production,testing >> environment=testing >> >> [puppetmasterd] >> templatedir=/var/lib/puppet/templates >> >> >> [puppetd] >> report = true >> >> >> >> When I run puppetd --test on the client, I see the following error: >> >> nfo: Retrieving plugins >> err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of >> resource: No specified source was found from >> puppet://puppetmaster.numerex.com/plugins >> >> And I cannot find my custom fact anywhere under /var/lib/puppet on >> the client >> >> What am I missing here? I assume that I should find the fact somewhere >> on the client. >> > > > -- > --- > Derek T. Yarnell > University of Maryland > Institute for Advanced Computer Studies >-- 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.
what version of puppet is this? On Thu, Feb 4, 2010 at 7:06 AM, byron appelt <byron.appelt@gmail.com> wrote:> I am trying to get a custom fact to sync and have tried just about > everything. I am trying to follow this: > > http://reductivelabs.com/trac/puppet/wiki/PluginsInModules > > I have put my custom fact in /etc/puppet-dev/manifests/classes/custom/ > lib/facter > > the custom fact needs to be in a module: for 0.25.x it would be$modulepath/MODULENAME/lib/facter/custom_fact.rb> puppet.conf on my puppetmaster looks like this > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > pluginsync=true > server = puppetmaster.numerex.com > environments = development,testing,production > > [puppetmasterd] > certname=puppetmaster.numerex.com > > [puppetd] > report = true > > [testing] > modulepath = /etc/puppet-dev/manifests/classes > templatedir=/etc/puppet-dev/templates > manifest = /etc/puppet-dev/manifests/site.pp > factpath = /etc/puppet-dev/facter > pluginsync = true > > factpath and pluginsync dont make any sense to be configured on theserver''s environment> > [production] > modulepath = /etc/puppet/manifests/classes > templatedir=/etc/puppet/templates > manifest = /etc/puppet/manifests/site.pp > > And in fileserver.conf I have: > > [files] > path /etc/puppet/files > allow * > > [plugins] > allow *.numerexfast.com > > [modules] > allow *.numerexfast.com > > > And on my puppet client it looks like this: > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > factpath=$vardir/lib/facter > pluginsync=true > server=puppetmaster.numerex.com > environments=production,testing >I am not aware of any config options environments> environment=testing > > [puppetmasterd] > templatedir=/var/lib/puppet/templates > > > [puppetd] > report = true > > > > When I run puppetd --test on the client, I see the following error: > > nfo: Retrieving plugins > err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of > resource: No specified source was found from puppet:// > puppetmaster.numerex.com/plugins > > And I cannot find my custom fact anywhere under /var/lib/puppet on > the client >running on verbose, you will see the facts being synchronized.> > What am I missing here? I assume that I should find the fact somewhere > on the client. > > -- > 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<puppet-users%2Bunsubscribe@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.