Hi all, I''m reading http://docs.puppetlabs.com/guides/modules.html#module-lookup and trying to understand how puppet autoload modules. It says: "From version Puppet 0.23.1 onwards, everything under the modulepath is automatically imported into Puppet and is available to be used" so, if our modulepath looks like: modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests/services/workernode/modules/ we''re running puppet-server-2.6.1-0.6.el5 and we have this modules: /etc/puppet/manifests/modules/module1/manifests/init.pp /etc/puppet/manifests/modules/common/module2/manifests/init.pp /etc/puppet/manifests/services/workernode/modules/module3/manifests/init.pp module1 2 and 3 should be autoimported... am I right? in my case: The error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class common_system_defaults at /etc/puppet/manifests/services/workernode/nodes.pp:8 on node XXXXXX.mydomain.com modulepath: # grep modulepath puppet.conf modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests/services/workernode/modules/ calss include: # cat /etc/puppet/manifests/services/workernode/nodes.pp node ''XXXXX.mydomain.com'' { include common_system_defaults } class path and definition: # grep "^class" /etc/puppet/manifests/modules/common_defaults/manifests/init.pp class common_system_defaults { so, why is puppet complaining about missing class? TIA, Arnau -- 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 Fri, 3 Dec 2010 12:55:38 +0100 Arnau Bria wrote:> Hi all, > modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests/services/workernode/modules/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is wrong. /modules/common overwrites /modules and modules not under /modules/common are not visible. Cheers, Arnau -- 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 Fri, Dec 3, 2010 at 7:15 AM, Arnau Bria <arnaubria@pic.es> wrote:> On Fri, 3 Dec 2010 12:55:38 +0100 > Arnau Bria wrote: > >> Hi all, >> modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests/services/workernode/modules/ > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > this is wrong. /modules/common overwrites /modules and modules not under > /modules/common are not visible.Wrong how? I''m unsure how we behave when you specify two overlapping locations: /etc/puppet/manifests/modules /etc/puppet/manifests/modules/common but the bit you''ve underlined isn''t necessarily wrong. We absolutely support multiple modulepaths separated by ":". I would suggest avoiding the overlapping filesystem locations and see if that resolves the issue.> > Cheers, > Arnau > > -- > 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. > >-- Nigel Kersten - Puppet Labs - http://www.puppetlabs.com -- 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 Fri, 3 Dec 2010 07:21:33 -0800 Nigel Kersten wrote:> On Fri, Dec 3, 2010 at 7:15 AM, Arnau Bria <arnaubria@pic.es> wrote: > > On Fri, 3 Dec 2010 12:55:38 +0100 > > Arnau Bria wrote: > > > >> Hi all, > >> modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests/services/workernode/modules/ > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > > > this is wrong. /modules/common overwrites /modules and modules not > > under /modules/common are not visible. > > Wrong how? I''m unsure how we behave when you specify two overlapping > locations:from my tests, if:> /etc/puppet/manifests/modules/my_module1 > /etc/puppet/manifests/modules/common/my_module2my_module1 is not seen and gives the error about missing classes. But my_module2 works fine.> but the bit you''ve underlined isn''t necessarily wrong. We absolutely > support multiple modulepaths separated by ":".yes... and for that reason, if /etc/puppet/manifests/services/workernode/modules/my_moudle3 exists, my_module3 is seen.> I would suggest avoiding the overlapping filesystem locations and see > if that resolves the issue.that''s exactly what I''ve done. maybe my explanation was really short and confusing :-)> > > > Cheers, > > Arnaucheers, Arnau -- 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 Fri, Dec 3, 2010 at 7:38 AM, Arnau Bria <arnaubria@pic.es> wrote:> On Fri, 3 Dec 2010 07:21:33 -0800 > Nigel Kersten wrote: > >> On Fri, Dec 3, 2010 at 7:15 AM, Arnau Bria <arnaubria@pic.es> wrote: >> > On Fri, 3 Dec 2010 12:55:38 +0100 >> > Arnau Bria wrote: >> > >> >> Hi all, >> >> modulepath=/etc/puppet/manifests/modules:/etc/puppet/manifests/modules/common:/etc/puppet/manifests/services/workernode/modules/ >> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> > >> > >> > this is wrong. /modules/common overwrites /modules and modules not >> > under /modules/common are not visible. >> >> Wrong how? I''m unsure how we behave when you specify two overlapping >> locations: > > from my tests, if: > >> /etc/puppet/manifests/modules/my_module1 >> /etc/puppet/manifests/modules/common/my_module2 > > my_module1 is not seen and gives the error about missing classes. But > my_module2 works fine. > > >> but the bit you''ve underlined isn''t necessarily wrong. We absolutely >> support multiple modulepaths separated by ":". > yes... > and for that reason, > if /etc/puppet/manifests/services/workernode/modules/my_moudle3 exists, > my_module3 is seen. > >> I would suggest avoiding the overlapping filesystem locations and see >> if that resolves the issue. > that''s exactly what I''ve done. > > maybe my explanation was really short and confusing :-)I think we''re saying exactly the same thing, so either that, or I fail at reading comprehension :)> >> > >> > Cheers, >> > Arnau > cheers, > Arnau > > -- > 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. > >-- Nigel Kersten - Puppet Labs - http://www.puppetlabs.com -- 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 Fri, 3 Dec 2010 07:59:55 -0800 Nigel Kersten wrote: [...]> I think we''re saying exactly the same thing, so either that, or I fail > at reading comprehension :)we''re saying the same thing. your comprehension is fine, my English not :-)> > cheers, > > Arnau-- 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.