Issue #4837 has been updated by Nigel Kersten.
I do think we need to make this consistent with the current template() function.
Ignoring the current mail thread about the use of '~' to represent module
paths, I suggest we restrict the scope of this request to make the file()
function behave just like the template function if presented with a
non-absolute path.
file('foo/bar') is modules/foo/files/bar
I assume functions can be inherited from? We should possibly make template()
just a special case of file() if so, and then that offers people the ability to
inherit from file() and do whatever they want.
encryption/decryption/munging/etc.
----------------------------------------
Feature #4837: Puppet function to specify contents from module file without
templating
http://projects.puppetlabs.com/issues/4837
Author: Nigel Kersten
Status: Accepted
Priority: Normal
Assignee:
Category: fileserving
Target version:
Affected version:
Keywords:
Branch:
Given that:
1. Each source => puppet:/// entry in a client catalog involves a metadata
request roundtrip to the server on catalog application
2. Such resource application fails to work when the server is offline
3. The template function does template evaluation
4. The file function takes absolute paths
There isn't a good way right now to refer to a file inside a module and specify
the contents of that file in the catalog (ie via content => ).
I propose we modify the file function such that if the specified path isn't
absolute, it considers the path to be relative to the files subdirectory of the
given module.
--
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.