saltstack/salt — pull request #2818 by smaragd (2012-12-06 14:49:34+00:00)
Title: Implemented the file_ignore_regex and file_ignore_glob feature (#2681)

The idea originated in a [discussion between Thomas and I](https://groups.google.com/d/topic/salt-users/yb8f3xzlwBg/discussion) in the Salt-users group.

It provides the user with two new options to set a list of regular expressions and/or file globs that will be evaluated during file transfers (states, modules, file.recurse). This allows you to exclude version control files like ".git", ".svn" or "CVS" folders from being synced to all minions.

I had some time to work on this and offer my implementation for consideration.

This closes issue #2681.