christian huber
2011-Jun-24 12:33 UTC
[Puppet Users] Puppet Class is applied but is not executed
Hi all, i'' am having a strange problem with a puppet class, basically i wrote a small class, no special content (ensure packed is installed). I applied this class to a linuxbox with puppetclient 2.6.4 installed (and working for the other classes). So the problem if I''am forcing now the client to get the new configuration, it does it very well. No error''s even with the debug option. In the /var/lib/puppet directory i take a look at the classes.txt and i find the new class inside. So i try to force en error with the class be doing a modifying the class and adding a parser error. Executing again on the linuxbox the puppet command, nothing happens. I would now expect a error. But it looks like puppet just doesn''t executed this class. anyone a idea what i''am missing .. ? thanks Christian -- 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.
jcbollinger
2011-Jun-24 21:06 UTC
[Puppet Users] Re: Puppet Class is applied but is not executed
On Jun 24, 7:33 am, christian huber <christian.hu...@triphase.ch> wrote:> Hi all, > > i'' am having a strange problem with a puppet class, basically i wrote > a small class, no special content (ensure packed is installed). I > applied this class to a linuxbox with puppetclient 2.6.4 installed > (and working for the other classes). > > So the problem if I''am forcing now the client to get the new > configuration, it does it very well. No error''s even with the debug > option. In the /var/lib/puppet directory i take a look at the > classes.txt and i find the new class inside. > > So i try to force en error with the class be doing a modifying the > class and adding a parser error. Executing again on the linuxbox the > puppet command, nothing happens. I would now expect a error. But it > looks like puppet just doesn''t executed this class. > > anyone a idea what i''am missing .. ?You might be missing a message that Puppet is applying a cached catalog because the master failed to compile a new one; that''s normally what happens when there is a syntax error in a node''s manifests. We''re missing all details of Puppet''s output, whether to the console or to the system logs. Also the contents of the manifests involved and the command you used to run Puppet. John -- 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.
Marek Dohojda
2011-Jun-25 05:25 UTC
Re: [Puppet Users] Re: Puppet Class is applied but is not executed
I agree it is almost certainly a syntax error. Do this on your class: puppet --parseonly <class name> this will do a quick sanity check. If you want to do more you can also run puppet with nodeamonize mode and debug to see what''s wrong.. but I have a feeling that syntax checking will solve it. -----Original Message----- From: jcbollinger Sent: Friday, June 24, 2011 3:06 PM To: Puppet Users Subject: [Puppet Users] Re: Puppet Class is applied but is not executed On Jun 24, 7:33 am, christian huber <christian.hu...@triphase.ch> wrote:> Hi all, > > i'' am having a strange problem with a puppet class, basically i wrote > a small class, no special content (ensure packed is installed). I > applied this class to a linuxbox with puppetclient 2.6.4 installed > (and working for the other classes). > > So the problem if I''am forcing now the client to get the new > configuration, it does it very well. No error''s even with the debug > option. In the /var/lib/puppet directory i take a look at the > classes.txt and i find the new class inside. > > So i try to force en error with the class be doing a modifying the > class and adding a parser error. Executing again on the linuxbox the > puppet command, nothing happens. I would now expect a error. But it > looks like puppet just doesn''t executed this class. > > anyone a idea what i''am missing .. ?You might be missing a message that Puppet is applying a cached catalog because the master failed to compile a new one; that''s normally what happens when there is a syntax error in a node''s manifests. We''re missing all details of Puppet''s output, whether to the console or to the system logs. Also the contents of the manifests involved and the command you used to run Puppet. John -- 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. -- 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.
Serge
2011-Jun-26 21:36 UTC
[Puppet Users] Re: Puppet Class is applied but is not executed
I recently had a similar issue. The problem happened to be that hostname on the box did not include the FQDN, while in puppet configuration it did. On Jun 24, 10:33 pm, christian huber <christian.hu...@triphase.ch> wrote:> Hi all, > > i'' am having a strange problem with a puppet class, basically i wrote > a small class, no special content (ensure packed is installed). I > applied this class to a linuxbox with puppetclient 2.6.4 installed > (and working for the other classes). > > So the problem if I''am forcing now the client to get the new > configuration, it does it very well. No error''s even with the debug > option. In the /var/lib/puppet directory i take a look at the > classes.txt and i find the new class inside. > > So i try to force en error with the class be doing a modifying the > class and adding a parser error. Executing again on the linuxbox the > puppet command, nothing happens. I would now expect a error. But it > looks like puppet just doesn''t executed this class. > > anyone a idea what i''am missing .. ? > > thanks > Christian-- 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.