Sorry, it does not help with the problem, but some time ago, i think i had something similar.
I had a module+class which is perfectly working, and which was included in the node code. But if this class was in included in another class, it could not be found and puppet run failed. I had no choice but to include it at the node level for it to be found and included. 2011/10/13 Nan Liu <n...@puppetlabs.com> > On Wed, Oct 12, 2011 at 2:31 PM, Boskey <bos...@gmail.com> wrote: > > Hi, > > > > I am having trouble getting puppet to find a class thats defined in > > one of the modules.I have a module/folder called 'webserver' in /etc/ > > puppet/modules/, which has a init.pp file with the below content > > > > class webserver{ > > file {'test.txt': > > path => '/etc/test.txt', > > ensure => present, > > mode => 0640, > > source => "puppet:///webserver/test.txt" > > } > > } > > The code above should be located in > /etc/puppet/modules/webserver/manifests/init.pp > > Move the test.txt to /etc/puppet/modules/webserver/files/test.txt and > update your source to: > puppet:///modules/webserver/test.txt > > > I have a nodes.pp file with > > > > node basenode { > > include webserver > > } > > > > node 'puppet-client02.eng.xyz.com'inherits basenode { > > } > > > > node 'puppet-client.eng.xyz.com'inherits basenode { > > > > > > And the site.pp, file has > > > > -SNIP- > > import "modules" > > import "nodes" > > -SNIP- > > You don't need either import statement. > > HTH, > > Nan > > -- > 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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.