On Mar 20, 2012, at 12:47 PM, Pablo Fernandez wrote: > Hi, > > I am trying to import some manifests manually (outside the modules tree) and > it does not seem to work fine. I have the files: > manifests/site.pp > manifests/data/file1.pp > > Inside site.pp I do: > import "data/file1.pp" > > And that doesn't work. But if I rename data/file1.pp by data_file1.pp, and > place it in the same directory as site.pp (so, no subdirectories), it works. > > I was reading the language guide, and it seems like "import" should work the > way I use it, but it does not, at least in my case. > > Any clue? > > Thanks, > Pablo
Individual files can only be imported from the same directory as the site.pp. If you want to import from a subdirectory you'll need use globbing: import 'data/*' This is covered in the Importing Manifests section of the language guide. http://docs.puppetlabs.com/guides/language_guide.html#importing-manifests -- Peter M. Bukowinski Sr. Systems Engineer Janelia Farm Research Campus, HHMI -- 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.