KnightOrc
2010-Oct-27 14:56 UTC
[Puppet Users] Module names - limitations / reserved words?
Greeting, I''m attempting to solve a mystery we had with a puppet module we couldn''t get to auto load. The module named / folder was called "nfs" We notice when we ran ''puppetmasterd --no-daemonize --verbose'' that when the client connected that our ''nfs'' module was not being auto loaded. We reviewed and triple checked our syntax. We located no errors. As a result of the module not being loaded we were unable to access a resource defined within the init.pp. Finally as a "Hail Mary" we renamed the module to ''nfsexports''. On the next client run the module was auto loaded and all was well in puppet land. My question today is, Are there "reserved" words that can''t be used as module to resource names? If yes, does anyone have the list or a URL to the list? We''ve looked but all we found are references to class name limitations, "ie can''t begin with a CAPTIAL letter". Thanks in advance, Wade -- 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.
ndenev
2010-Nov-05 08:47 UTC
[Puppet Users] Re: Module names - limitations / reserved words?
On Oct 27, 4:56 pm, KnightOrc <wade.peac...@sunwave.net> wrote:> Greeting, > > I''m attempting to solve a mystery we had with a puppet module we > couldn''t get to auto load. > > The module named / folder was called "nfs" > > We notice when we ran ''puppetmasterd --no-daemonize --verbose'' that > when the client connected that our ''nfs'' module was not being auto > loaded. > > We reviewed and triple checked our syntax. We located no errors. As a > result of the module not being loaded we were unable to access a > resource defined within the init.pp. > > Finally as a "Hail Mary" we renamed the module to ''nfsexports''. On > the next client run the module was auto loaded and all was well in > puppet land. > > My question today is, Are there "reserved" words that can''t be used as > module to resource names? If yes, does anyone have the list or a URL > to the list? We''ve looked but all we found are references to class > name limitations, "ie can''t begin with a CAPTIAL letter". > > Thanks in advance, > > WadeI think I''ve hit similar problem, and the issue really was that I was trying to include a class in a subclass when both have the same name. I.e. class baseclass::apache { include apache } This include will reference the baseclass:apache class, and not the apache class, to work around it you should use : class baseclass::apache { include ::apache } Then I''ve found this thread/bugreport that explains it all : http://www.mail-archive.com/puppet-bugs@googlegroups.com/msg03637.html But I agreee that it should probably it should print a warning or something. Regards, Nikolay -- 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.
Peter Meier
2010-Nov-05 10:04 UTC
Re: [Puppet Users] Re: Module names - limitations / reserved words?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> Then I''ve found this thread/bugreport that explains it all : > http://www.mail-archive.com/puppet-bugs@googlegroups.com/msg03637.html > But I agreee that it should probably it should print a warning or > something.can you file a feature request? ~pete -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzT1sYACgkQbwltcAfKi39giwCfVgGFrZ2T36k9gxrgeiBl52HJ bN8AniIyKS1b20wHw1yqcxAaORhT0iDg =GLZv -----END PGP SIGNATURE----- -- 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.
ndenev
2010-Nov-05 13:04 UTC
[Puppet Users] Re: Module names - limitations / reserved words?
On Nov 5, 12:04 pm, Peter Meier <peter.me...@immerda.ch> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Then I''ve found this thread/bugreport that explains it all : > >http://www.mail-archive.com/puppet-bugs@googlegroups.com/msg03637.html > > But I agreee that it should probably it should print a warning or > > something. > > can you file a feature request? > > ~pete > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/ > > iEYEARECAAYFAkzT1sYACgkQbwltcAfKi39giwCfVgGFrZ2T36k9gxrgeiBl52HJ > bN8AniIyKS1b20wHw1yqcxAaORhT0iDg > =GLZv > -----END PGP SIGNATURE-----I''ve filed a feature request : http://projects.puppetlabs.com/issues/5208 with a typo and messed up links... Regards, Nikolay Next time I''ll click "Preview" first :) -- 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.