Am I reading the right code which I believe is responsible and that 
Import "foo/*" does not recursively import beyond the directory of foo
correct?
Does the behavior of module importation import everything recursively 
from the manifests directory?  I am seeing behavior where a class in a 
module was working but it wasn''t imported it seems.
Thanks,
derek
-----
def find_manifests(start, options = {})
         cwd = options[:cwd] || Dir.getwd
         module_name, pattern = split_file_path(start)
         begin
             if mod = Puppet::Module.find(module_name, 
options[:environment])
                 return mod.match_manifests(pattern)
             end
         rescue Puppet::Module::InvalidName
             # Than that would be a "no."
         end
         abspat = File::expand_path(start, cwd)
         files = Dir.glob(abspat).reject { |f| FileTest.directory?(f) }
         if files.size == 0
             files = Dir.glob(abspat + ".pp").reject { |f| 
FileTest.directory?(f) }
         end
         return files
     end
Thanks,
derek
-- 
---
Derek T. Yarnell
University of Maryland
Institute for Advanced Computer Studies
-- 
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
On 4/16/2010 8:25 PM, Derek Yarnell wrote:> Am I reading the right code which I believe is responsible and that > Import "foo/*" does not recursively import beyond the directory of foo > correct?Yes.> Does the behavior of module importation import everything recursively > from the manifests directory? I am seeing behavior where a class in a > module was working but it wasn''t imported it seems.Content from modules is autoloaded by name. If a class/define "module::submodule::name" is not available after loading "module/manifests/init.pp", "module/manifests/submodule/name.pp" is tried automatically, making most imports unnecessary. Best Regards, David -- dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at Klosterneuburg UID: ATU64260999 FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.