Issue #22335 has been updated by Josh Cooper.
> It would have worked just fine – if I could actually tell puppet to just KEEP > the existing mode – but unfortunately puppet insists on either setting what I > give it, OR set the permissions it sees on the server (which is unix – so > that’s just a plain dumb idea). I think this issue is a duplicate of #18931. Currently there is no way to stop puppet from managing the mode on existing file/dir. It always applies either the mode in the manifest (if specified), or the value from the remote server. Would you agree? I created a patch here <http://projects.puppetlabs.com/issues/18931#note-3> to work around this on Windows. It is a bit of a hack. However, puppet has behaved this way on *nix since 0.25.0, and on Windows since around 2.7.6. So we can't suddenly change the behavior. I proposed a solution to the mailing list: <https://groups.google.com/d/topic/puppet-users/XNy8gI3jcf0/discussion> Basically, you could specify something like: <pre> source_permissions => :always - what puppet does today (default) :creates - only apply source permissions when creating a file :never - the behavior you are looking for </pre> I'm not married to the names or values, but I think you get the idea. Also note there is a related issue for newly created files #5240. ---------------------------------------- Bug #22335: windows mode 2000770 not handled by puppet https://projects.puppetlabs.com/issues/22335#change-97712 * Author: Klavs Klavsen * Status: Needs More Information * Priority: Normal * Assignee: * Category: * Target version: * Affected Puppet version: 3.2.4 * Keywords: * Branch: ---------------------------------------- I was trying to update facter on my puppet-3.2.4 install on windows (due to a bug with ipv6 addresses in $ipaddress fact which is fixed in 1.7.3-rc1). I tried to just use a file resource with recurse => true. Problem is, facter folder has mode 2000770 - which I can't define in file mode - and if I don't - it can't overwrite the files: Everything goes fine -until it gets to changing the mode on the facter folder: Notice: /Stage[main]/Puppet/File[C:\Program Files (x86)\Puppet Labs\Puppet\facter]/mode: mode changed '2000770' to '0770' Warning: /File[C:/Program Files (x86)/Puppet Labs/Puppet/facter/LICENSE]: Could not stat; permission denied Warning: /File[C:/Program Files (x86)/Puppet Labs/Puppet/facter/Gemfile]: Could not stat; permission denied -- 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.
