access files in modules when using puppet instead of puppetd.... leave off the server name... got it. thank you.
On Jul 6, 3:40 pm, Jeff McCune <j...@puppetlabs.com> wrote: > On Tue, Jul 6, 2010 at 12:25 PM,TonyR<scuderia...@gmail.com> wrote: > > Jeff, > > > Thanks for the response. > > My pleasure. > > > puppet:///modules/modulename/path/to/file.txt source URI's. got > > it. is that part of puppet best practices? > > Yeah, it's documented at:http://docs.reductivelabs.com/guides/modules.html > > The pertinent section is: > > Notice that the file source path includes a modules/ component. In > Puppet version 0.25 and later, you must include this component in > source paths in order to serve files from modules. Puppet 0.25 will > still accept source paths without it, but it will warn you with a > deprecation notice about “Files found in modules without specifying > ‘modules’ in file path”. In versions 0.24 and earlier, source paths > should not include the modules/ component. > > Note also that you can still access files in modules when using puppet > instead of puppetd; just leave off the server name and puppetd will > fill in the server for you (using its configuration server as its file > server) and puppet will use its module path: > > file { "/etc/auto.homes": > source => "puppet:///modules/autofs/auto.homes" > > } > > -- > Jeff McCunehttp://www.puppetlabs.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.