Issue #9930 has been updated by Ken Barber. Priority changed from Normal to Low
As with a lot of my tickets, this was raised for some client during training - but unfortunately they aren't watching the ticket so I can't get them to devolve their use-case. >From memory it was to do with the fact they had a directory (and >sub-directories) of *.conf files and they only wanted to copy them - there may >have been other content but they wanted them to be ignored. So it was a >whitelist versus blacklist copy use-case. Pretty obvious kind of case I would >presume, but I haven't really been asked for it that often (perhaps twice) or >had a need for it myself so I can't speak for demand. ---------------------------------------- Bug #9930: file resource should have concept of 'include' much like rsync https://projects.puppetlabs.com/issues/9930 Author: Ken Barber Status: Needs More Information Priority: Low Assignee: Category: file Target version: Affected Puppet version: 2.7.4 Keywords: file provider, rsync, include Branch: So currently we have the ignore parameter which parallels to 'exclude' for rsync: file { "/Users/ken/tmp/ignore/testcontent/": ensure => directory, mode => "0666", source => "/Users/ken/tmp/ignore/sourcecontent", ignore => "*.ignore", recurse => true, } What would be nice is the converse of this ... lets call it 'include' for now: file { "/Users/ken/tmp/ignore/testcontent/": ensure => directory, mode => "0666", source => "/Users/ken/tmp/ignore/sourcecontent", include => "*.include", recurse => true, } And it probably should behave the same way ie. take an array - support wildcard globing. And probably should allow mixing 'ignore' and 'include'. On a side-note 'ignore' is probably best aliased to 'exclude' in this case. But I'm getting ahead of myself. What do people think? -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en.
