Issue #2771 has been updated by Luke Kanies. Status changed from Unreviewed to Duplicate
---------------------------------------- Bug #2771: file function should use puppet://url/module/ nomenclature, not absolute paths http://projects.reductivelabs.com/issues/2771 Author: eric sorenson Status: Duplicate Priority: Normal Assigned to: Category: Target version: Affected version: 0.25.1 Keywords: Branch: I had figured something like this would work to set the value of $cryptstring to the contents of the file at the specified location under /etc/puppet/modules/users/files/xxx: <pre> class users::root { if $layer { $cryptstring = file("puppet:///modules/users/root.$operatingsystem.$layer") } else { $cryptstring = file("puppet:///modules/users/root.$operatingsystem.server") } user { "root": password => $cryptstring } } </pre> But instead I got: <pre> err: Files must be fully qualified at /Users/eric/Sandbox/puppet/etc/modules/users/manifests/root.pp:6 on node leterel.foo.com </pre> It works if I specify a full filesystem path instead of the puppet:/// url, but I think this is less than optimal, because filesystem paths move around a lot (from sandbox to production for example) and the fileserver mechanism's used pretty much everywhere else I can find for this sort of thing. I am working up a patch to add a Puppet::Parser::Files.find_file analogous to the existing Puppet::Parser::Files.find_template but wanted to file this redmine to (a) get a sanity check that this is worth changing (and if my proposal is moving in the right direction) and (b) have a ticket to name the branch after. -- 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://reductivelabs.com/redmine/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 -~----------~----~----~----~------~----~------~--~---
