I am confused about the template dir in the module/{modulename}/ dir Does the autoloader look in /env1/modules/{modulename}/templates/ automatically, or do I need to refer to the template by its full path?
http://projects.reductivelabs.com/projects/puppet/wiki/Puppet_Templating states that a tempaltedir needs to be defined for the environment, not the module. I'm confused. --- Thanks, Allan Marcus 505-667-5666 On Mar 22, 2010, at 5:24 PM, Allan Marcus wrote: > hello, > > Is this directory structure for modules still recommended, or is there a > better way? > > http://projects.reductivelabs.com/projects/puppet/wiki/Module_Organisation > > We are thinking of having a directory for each environment, then broken down > as recommended here: > > http://projects.reductivelabs.com/projects/puppet/wiki/Puppet_Best_Practice > > So in practice, it might look like > > Environments > /env1 > /env1/manifests/site.pp > /env1/manifests/templates.pp > /env1/manifests/nodes.pp > /env1/modules/{modulename}/files/ > /env1/modules/{modulename}/manifests/init.pp > /env1/modules/{modulename}/manifests/class1.pp > /env1/modules/{modulename}/manifests/definition1.pp > /env1/modules/{modulename}/manifests/class2.pp > /env1/modules/{modulename}/plugins/ > /env1/modules/{modulename}/templates/ > > /env2 > ... > /env3 > ... > > Does this look right? > > --- > Thanks, > > Allan Marcus > 505-667-5666 > > >
smime.p7s
Description: S/MIME cryptographic signature