Issue #4085 has been reported by Joel Heenan.

----------------------------------------
Bug #4085: template() function prefers global templates, no way to explicitly 
say I want the module template
http://projects.puppetlabs.com/issues/4085

Author: Joel Heenan
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Affected version: 0.25.5rc3
Keywords: 
Branch: 


given at site.pp:

<pre>
node "localhost" {
    alert("localhost")

    import "foo"
}
</pre>

and foo's init.pp:

<pre>
file { "/tmp/foo":
    content => template("foo/foo.erb")
}
<pre>

If you have a template in the templatedir directory in a folder foo/foo.erb 
that will be preferred over the modules template. And there is no way to say "I 
want to explicitly use the modules template". 

I propose that the template() function is extended to support syntax in the 
form:

template("modules/foo/foo.erb")

so the template can be explicitly requested. I'm working on a patch for this 
now.

I have verified this bug affects the latest github code.




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to