I got it working by using a function from the Puppet Labs standard library
as a starting point. I never did find out exactly what was going on.
I thought that the logs it was giving me in /var/log/puppet were all I
could get. For some reason proper logging never got set up, but the
presence of the HTTP logs fooled me into thinking I couldn't get any more.
I may never know what the issue was now. The specific formula that finally
worked was
module Puppet::Parser::Functions
newfunction(:subpaths, :type => :rvalue) do |arguments|
input = arguments[0]
if ! input.is_a?(Array)
input = [input]
end
result = []
input.each do |path|
temp_path = path
begin
result << temp_path
temp_path = File.dirname(temp_path)
end while (temp_path != "/" and temp_path != ".")
end
return result.uniq
end
end
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en.