On Jan 18, 2011, at 9:38 PM, Bostjan Skufca wrote:
> Would anyone else fancy a wildcard path expansion in module path
> specification?
> 
> Example:
> 
> modulepath = /etc/puppet/modules/*
> 
> -------[ above should expand to this
> equivalent ]------------------------------
> [ provided that repo1 and repo2 dirs exist in /etc/puppet/modules ]
> 
> modulepath = /etc/puppet/modules/repo1:/etc/puppet/modules/repo2

There are a couple potential caveats to that, the most serious being sort 
methodology for the wildcard expansion. It would have to be deterministic in 
terms of "always being sorted the same way" (because a straight wildcard 
expansion will present the various directory items in essentially random order).

If you care about in what order things are in the path, then it would be a bad 
idea to use, but if the sort-methodology is well documented so nobody is 
surprised, then it should be fine. (IMHO)

D

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

Reply via email to