Thanks for your answer. I misread it. How strange, In the shared directory ($templatedir), we don't need to specify 'module name' But in the </modules> folder, we have to specify it.
From: Martin Alfke <tux...@gmail.com> Subject: Re: [Puppet Users] Could find template at /modules/<modules name>/templates Date: Tue, 29 Nov 2011 13:59:16 +0100 > Hi, > > On 29.11.2011, at 09:56, Diep Pham Van wrote: > >> Hi, >> I have a problem. >> I have a modules name emacs. >> Under /modules/emacs, I have: >> - templates >> - files >> - manifests >> >> I cannot use template file from templates folder, It's say cold not find >> template ... >> But when I place the template file in $templatedir folder, everything works >> well. > > within modules you have to use special path when using templates: > e.g. > content => template ("emacs/template.erb") > > Do you have modulepath configured in puppet.conf? > > Also have a look on the wiki: > http://projects.puppetlabs.com/projects/1/wiki/Puppet_Modules > > Kind regards, > > Martin > > -- > 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.