Issue #9930 has been reported by Ken Barber.

----------------------------------------
Bug #9930: file resource should have concept of 'include' much like rsync
https://projects.puppetlabs.com/issues/9930

Author: Ken Barber
Status: Unreviewed
Priority: Normal
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/*.ignore":
      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/*.ignore":
      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.

Reply via email to