More a random question than anything. I am going to assume the .hg files are from mercurial. Assuming this I am wondering why you aren't using something like puppetlabs-vcsrepo on puppet forge to deploy the directory via mercurial. It seems like a better idea in my brain.
Pete. On 3 January 2013 07:17, iamauser <[email protected]> wrote: > I am trying the following to recursively copy a dir while ignoring things > like .hg and a few others. > > file { > "/etc/work-related-dir" : > source => "/path/to/masterfiles/work-related-dir", > recurse => 'inf', > owner => '0', > group => '0', > ignore => '{.hg,*.conf~}', > checksum => 'mtime', > backup => false; > } > > Running a noop mode tries to copy everything including the one that > matches ".hg, *.conf~". If I specify only a single parameter value for > ignore, i.e. ".hg", then it doesn't try the copy of .hg directory and works > as expected. > > Following an earlier post about this, I checked Ruby's globing options,and > found that the pattern I am providing matches multiple files in the source > area. > > Any help or suggestion would be appreciated. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/u2yIrhvtie0J. > 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-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
