Hi It seems like classes.txt file is not being created when I run puppet on my servers. I am running puppet without a puppet master. I use subversion to pull the manifests on each of the boxes and run this command to run puppet. puppet apply --verbose /path/to/manifest My puppet version is puppet 2.6.4. My puppet.conf file looks like this: [main] # The Puppet log directory. # The default value is ''$vardir/log''. logdir = /var/log/puppet # Where Puppet PID files are kept. # The default value is ''$vardir/run''. rundir = /var/run/puppet # Where SSL certificates are kept. # The default value is ''$confdir/ssl''. ssldir = $vardir/ssl # Where manifests are kept manifestdir = $vardir/manifests [agent] # The file in which puppetd stores a list of the classes # associated with the retrieved configuratiion. Can be loaded in # the separate ``puppet`` executable using the ``--loadclasses`` # option. # The default value is ''$confdir/classes.txt''. classfile = $vardir/classes.txt # Where puppetd caches the local configuration. An # extension indicating the cache format is added automatically. # The default value is ''$confdir/localconfig''. localconfig = $vardir/localconfig Any idea why that may be happening? Thanks. -- Nite -- 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 Tue, Mar 8, 2011 at 3:19 PM, Nitesh <nitesh@wikinvest.com> wrote:> Hi > It seems like classes.txt file is not being created when I run puppet > on my servers. > I am running puppet without a puppet master. I use subversion to pull > the manifests on each of the boxes and run this command to run puppet. > > puppet apply --verbose /path/to/manifest > > My puppet version is puppet 2.6.4. > > My puppet.conf file looks like this: > > [main] > # The Puppet log directory. > # The default value is ''$vardir/log''. > logdir = /var/log/puppet > > # Where Puppet PID files are kept. > # The default value is ''$vardir/run''. > rundir = /var/run/puppet > > # Where SSL certificates are kept. > # The default value is ''$confdir/ssl''. > ssldir = $vardir/ssl > > # Where manifests are kept > manifestdir = $vardir/manifests > > [agent] > # The file in which puppetd stores a list of the classes > # associated with the retrieved configuratiion. Can be loaded in > # the separate ``puppet`` executable using the ``--loadclasses`` > # option. > # The default value is ''$confdir/classes.txt''. > classfile = $vardir/classes.txt > > # Where puppetd caches the local configuration. An > # extension indicating the cache format is added automatically. > # The default value is ''$confdir/localconfig''. > localconfig = $vardir/localconfig > > > Any idea why that may be happening?It looks like classes.txt is only created when using ''agent'', not ''apply''. -- 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.
I want classes.txt because I need to run mcollective filters on this box. Is there any way to publish a classes.txt when running puppet apply? -- 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 Nitesh, I think the vardir variable is missing in your puppet.conf file. In Puppet.conf you have to specify the *vardir* variable path and after running the puppet manifests you can check the classes.txt file in /var/lib/puppet/ directory. vardir = /var/lib/puppet/ Thanks and Regards, Rahul Khengare, NTT DATA OSS Center, Pune, India. On Wednesday, March 9, 2011 4:49:55 AM UTC+5:30, Nitesh wrote:> > Hi > It seems like classes.txt file is not being created when I run puppet > on my servers. > I am running puppet without a puppet master. I use subversion to pull > the manifests on each of the boxes and run this command to run puppet. > > puppet apply --verbose /path/to/manifest > > My puppet version is puppet 2.6.4. > > My puppet.conf file looks like this: > > [main] > # The Puppet log directory. > # The default value is ''$vardir/log''. > logdir = /var/log/puppet > > # Where Puppet PID files are kept. > # The default value is ''$vardir/run''. > rundir = /var/run/puppet > > # Where SSL certificates are kept. > # The default value is ''$confdir/ssl''. > ssldir = $vardir/ssl > > # Where manifests are kept > manifestdir = $vardir/manifests > > [agent] > # The file in which puppetd stores a list of the classes > # associated with the retrieved configuratiion. Can be loaded in > # the separate ``puppet`` executable using the ``--loadclasses`` > # option. > # The default value is ''$confdir/classes.txt''. > classfile = $vardir/classes.txt > > # Where puppetd caches the local configuration. An > # extension indicating the cache format is added automatically. > # The default value is ''$confdir/localconfig''. > localconfig = $vardir/localconfig > > > Any idea why that may be happening? > Thanks. > > -- > Nite-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Possibly Parallel Threads
- Trying to get tagmail to work
- Puppet-Dashboard nodes showing up as unreported
- (New To Puppet)Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class sudo for pupclient on node pupclient
- Puppet / Passenger SSL Problems with DRBD
- puppetmaster built via puppetd