Issue #1946 has been updated by Andras Elso.

File find_file.patch added

Added a little hack to do this. (currently works only in module, because i'm 
not a ruby programmer)

$foo = file("modulename/filename") -> 
/etc/puppet/module/modulename/files/filename
but you can use the fullpath too
----------------------------------------
Feature #1946: let file() obtain file contents from fileserver and/or module 
space
https://projects.puppetlabs.com/issues/1946

Author: martin krafft
Status: Duplicate
Priority: Normal
Assignee: 
Category: fileserving
Target version: 2.7.x
Affected Puppet version: 0.24.5
Keywords: performance scaling
Branch: 


file() as it is requires an absolute pathname.

It would be nice if relative pathnames would be resolved relative to the root 
of the fileserver 'files' hierarchy, unless they start out with a module name, 
in which case the module space should be searched.

For instance

  file("etc/motd")       ==> puppet:///files/etc/motd
  files("motd/etc/motd") ==> .../modules/motd/files/etc/motd


-- 
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