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.