Issue #18931 has been updated by Josh Cooper.

Affected Puppet version set to 2.7.6

Commits merged in 
[653895b1](https://github.com/puppetlabs/puppet/commit/653895b13531e4dcffd1cef4cdba589382ff3a77),
 [2572d9b5](https://github.com/puppetlabs/puppet/commit/2572d9b5ad19d5) and 
[2de376a](https://github.com/puppetlabs/puppet/commit/2de376a).

These commits add a new file parameter, `source_permissions` for specifying how 
owner, group, and/or mode are applied to the file resource from its `source`. 
It applies to both local and remote file sources.

* The default is `use`, which is puppet's current behavior. This behavior is 
deprecated on windows and will be changed to `ignore` in a future release, e.g. 
Puppet 4.
* The value `use_when_creating` will only copy owner/group/mode when creating 
the file, but not when managing an existing file/dir
* The value `ignore` will prevent puppet from applying owner/group/mode from 
the source.


----------------------------------------
Feature #18931: Don't set mode on existing Windows folders when none is 
specified 
https://projects.puppetlabs.com/issues/18931#change-100171

* Author: Nick Chappell
* Status: Merged - Pending Release
* Priority: High
* Assignee: Kylo Ginsberg
* Category: file
* Target version: 3.4.0
* Affected Puppet version: 2.7.6
* Keywords: windows customer
* Branch: https://github.com/puppetlabs/puppet/pull/2087
----------------------------------------
Current behavior: If a folder resource is declared with a source => parameter 
but no mode specified, the mode of the source folder on the master is applied 
to it.

On Windows, this means that the mode is converted from POSIX to an equivalent 
set of Windows file permissions, which can break existing ACLs and inheritance.

Desired behavior: If a folder already exists on the node and is merely having 
files placed in it by Puppet, the mode shouldn't be changed if none is 
specified in the manifest.

A more complete solution would be the ability to specify NTFS ACLs directly, 
but this should alleviate problems caused by unexpected behavior in the mean 
time.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to