On Aug 16, 2:59 am, Sans <r.santanu....@gmail.com> wrote: > Dear all, > > I need to copy some files to the various clients in some logical way. > The files are named in this way: "farm001-cert.pem", where the forst > part of the name (i.e. nfarm001) is the name of host where it should > be copied. How can I do that? Any help greatly appreciated. Cheers!!
You can interpolate the 'hostname' fact into the name of the resouce, the name of the file on the file server, or both. For example: file { "${hostname}-cert.pem": ... source => "puppet://puppet.internalnet/modules/certs/${hostname}- cert.pem" } John -- 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.