Ryan Bowlby
2012-Mar-28 20:00 UTC
[Puppet Users] Empty node definition mysteriously runs yum class!
I''m having an issue where every single puppet node included our yum class as part of the catalog. In all instances the nodes node definition was empty. Has anyone experienced something like this before? Is the yum class colliding with an internal class? We do not define a node default or use any node regex that would have caused this. No other rogue classes are being included except the yum class. -- 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.
Denmat
2012-Mar-28 20:26 UTC
Re: [Puppet Users] Empty node definition mysteriously runs yum class!
Hi, Grep your manifest for all ''yum'' references (modules and manifest directories). If that doesn''t show up anything please provide more detail on your manifests. Den On 29/03/2012, at 7:00, Ryan Bowlby <rbowlby83@gmail.com> wrote:> I''m having an issue where every single puppet node included our yum > class as part of the catalog. In all instances the nodes node > definition was empty. Has anyone experienced something like this > before? Is the yum class colliding with an internal class? > > We do not define a node default or use any node regex that would have > caused this. No other rogue classes are being included except the yum > class. > > -- > 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.
jcbollinger
2012-Mar-29 12:42 UTC
[Puppet Users] Re: Empty node definition mysteriously runs yum class!
On Mar 28, 3:00 pm, Ryan Bowlby <rbowlb...@gmail.com> wrote:> I''m having an issue where every single puppet node included our yum > class as part of the catalog. In all instances the nodes node > definition was empty. Has anyone experienced something like this > before? Is the yum class colliding with an internal class? > > We do not define a node default or use any node regex that would have > caused this. No other rogue classes are being included except the yum > class.My first guess would be that you declare your yum class at top level (== outside any node definition or other class) somewhere in one of the manifests that all the affected nodes use. Top-level declarations apply to all nodes, and they can be in any manifest file. 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.
Ryan Bowlby
2012-Mar-29 21:09 UTC
[Puppet Users] Re: Empty node definition mysteriously runs yum class!
Nailed it. Accidentally had the include outside the class at "top- level". That''s a scary uhum feature. Might need to look into integrating some test code that looks for top-level includes within the modules dir and warns. Thanks John! -Ryan On Mar 29, 5:42 am, jcbollinger <John.Bollin...@stJude.org> wrote:> On Mar 28, 3:00 pm, Ryan Bowlby <rbowlb...@gmail.com> wrote: > > > I''m having an issue where every single puppet node included our yum > > class as part of the catalog. In all instances the nodes node > > definition was empty. Has anyone experienced something like this > > before? Is the yum class colliding with an internal class? > > > We do not define a node default or use any node regex that would have > > caused this. No other rogue classes are being included except the yum > > class. > > My first guess would be that you declare your yum class at top level > (== outside any node definition or other class) somewhere in one of > the manifests that all the affected nodes use. Top-level declarations > apply to all nodes, and they can be in any manifest file. > > 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.