I know this comes up periodically, and I''ve read through the wiki (including the Best Practices page) & list archives, but still can''t quite get my head around it. I see lots of references to /modules and $MODULE_PATH, but am not sure what these refer to. Here''s a basic setup I have. Let me know if this looks correct: /etc/puppet/ |-- autosign.conf |-- fileserver.conf |-- manifests | |-- nodes.pp | `-- site.pp |-- modules | |-- puppet | | |-- manifests | | | |-- init.pp | | `-- files | `-- ntp | |-- manifests | | |-- init.pp | `-- files `-- puppet.conf I guess my specific questions are: 1) modules and the "master" manifests should be on the same level (just under /etc/puppet)? 2) do I need to "import" or somehow specify my modules directory? 3) if not, then there must be a pre-defined $MODULE_PATH, how can I figure out what it is? Thanks for any help. johnn
On Nov 18, 2007, at 12:04 PM, Johnny Tan wrote:> I know this comes up periodically, and I''ve read through the > wiki (including the Best Practices page) & list archives, > but still can''t quite get my head around it. > > I see lots of references to /modules and $MODULE_PATH, but > am not sure what these refer to. > > Here''s a basic setup I have. Let me know if this looks correct:[...] Yep, looks fine.> I guess my specific questions are: > > 1) modules and the "master" manifests should be on the same > level (just under /etc/puppet)?Yep.> 2) do I need to "import" or somehow specify my modules > directory?As long as they''re in the MODULEPATH, nope.> 3) if not, then there must be a pre-defined $MODULE_PATH, > how can I figure out what it is?puppet --configprint modulepath -- It''s a small world, but I wouldn''t want to paint it. -- Stephen Wright --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Luke Kanies wrote:>> 3) if not, then there must be a pre-defined $MODULE_PATH, >> how can I figure out what it is? > > puppet --configprint modulepathAh, this is the magic :). Thanks a ton, Luke. Awesome program, awesome support. johnn
Another clarifying question. On this page: http://www.reductivelabs.com/trac/puppet/wiki/PuppetBestPractice The sample site.pp file says: # For now, we have to import each specific module Is that still true? I''ve noticed that if I don''t import the module in my site.pp, I can still call it with: node somenode { include "mymodule" } johnn
On Nov 19, 2007, at 10:27 AM, Johnny Tan wrote:> Another clarifying question. > > On this page: > http://www.reductivelabs.com/trac/puppet/wiki/PuppetBestPractice > > The sample site.pp file says: > # For now, we have to import each specific module > > Is that still true? I''ve noticed that if I don''t import the > module in my site.pp, I can still call it with: > node somenode { > include "mymodule" > }No, it''s no longer true. Can someone update the document? -- What''s the good of having mastery over cosmic balance and knowing the secrets of fate if you can''t blow something up? -- Terry Pratchett, "Reaper Man" --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Luke Kanies wrote:> On Nov 19, 2007, at 10:27 AM, Johnny Tan wrote: > >> Another clarifying question. >> >> On this page: >> http://www.reductivelabs.com/trac/puppet/wiki/PuppetBestPractice >> >> The sample site.pp file says: >> # For now, we have to import each specific module >> >> Is that still true? I''ve noticed that if I don''t import the >> module in my site.pp, I can still call it with: >> node somenode { >> include "mymodule" >> } > > No, it''s no longer true. Can someone update the document?Done. Thanks! johnn