On Mon, Oct 25, 2010 at 5:19 AM, Tomehb <tom...@gmail.com> wrote: > Hi Guys, > > I have tried changing the default location of puppet facts /var/lib/ > puppet/facts to /etc/puppet/development/modules/custom/lib/facter . > However, it fails to check the new location, and still pulls the facts > from the default location.
> My puppet.conf is as follows: > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/etc/puppet/ssl > rundir=/var/run/puppet > templatedir=$confdir/templates > > factpath=/etc/puppet/development/modules/custom/lib/facter > factsync = true > It looks like you're already using modules, I suggest moving away from factsync and instead switching to the more modern pluginsync/plugins-in-modules. http://docs.puppetlabs.com/guides/plugins_in_modules.html Your settings look a little confused to me, but if you read through that doc, it should hopefully become clearer. Basically factpath is where facts from factsync/pluginsync should be delivered *to* on the client by the puppetmaster, not where they come *from*. > [puppetmasterd] > #entries read by the puppetmaster itself > templatedir=/var/lib/puppet/templates > #reportdir=/var/puppet/lib > reports=store, log, foreman > report=true > ca=true > autosign=true > certname=puppeteer.myowndomain.co.uk > ca_md = sha > keylength=4096 > > ssl_client_header = SSL_CLIENT_S_DN > ssl_client_verify_header = SSL_CLIENT_VERIFY > > [production] > manifest = /etc/puppet/manifests/site.pp > modulepath = /etc/puppet/production/modules:/etc/puppet/common/ > modules > > > [development] > manifest = /etc/puppet/development/manifests/site.pp > modulepath = /etc/puppet/development/modules:/etc/puppet/common/ > modules:/etc/puppet/production/modules > > > [puppetd] > #entries read by the clients about puppetmaster > templatedir=/var/lib/puppet/templates > server=pupppeteer.myowndomain.co.uk > report=true > > > > > ------ > > And on the puppet client.. > > info: Retrieving facts > debug: Calling fileserver.list > debug: Calling fileserver.describe > debug: /File[/var/lib/puppet/facts]: Changing checksum > debug: /File[/var/lib/puppet/facts]: 1 change(s) > debug: /File[/var/lib/puppet/facts]/checksum: Replacing /var/lib/ > puppet/facts checksum {mtime}Mon Oct 25 12:40:07 +0100 2010 with > {mtime}Mon Oct 25 13:07:46 +0100 2010 > notice: /File[/var/lib/puppet/facts]/checksum: checksum changed > '{mtime}Mon Oct 25 12:40:07 +0100 2010' to '{mtime}Mon Oct 25 13:07:46 > +0100 2010' > debug: Finishing transaction -613821548 with 1 changes > debug: Retrieved facts in 0.72 seconds > > > > > > > 1) Why is it still reading the default location? > 2) Any idea where I have gone wrong? > > -- > 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<puppet-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- Nigel Kersten Product Manager, Puppet Labs http://www.puppetlabs.com Twitter: @nigelkersten -- 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.