Yes the Windows client is updating the mode based on what the file permission is in the puppet master's unix's file system, I did not see any change messages about the uid or gid being changed. Let me know if you need any more information or screen shots. I will be more than happy to provide whatever is needed.
On Thu, Jan 17, 2013 at 9:56 AM, jcbollinger <[email protected]>wrote: > > > On Wednesday, January 16, 2013 3:35:46 PM UTC-6, Josh Cooper wrote: > >> Hi Alex, >> >> On Wed, Jan 16, 2013 at 12:49 PM, phundisk <[email protected]> >> wrote: >> > I am noticing some very odd behavior with my puppet server and a >> windows >> > client. >> > >> > For my puppet server I have a module setup similar to this below... >> Please >> > note, I am not setting any permission on this file. >> > file { "C:\\directory\\file.dll": >> > ensure => 'present', >> > source => "puppet:///modules/aaa/file.**dll", >> > } >> > >> > The actual permissions in the unix filesystem is set to 644 >> > >> > When I apply this to my Windows client, the puppet agent will change >> the >> > mode of the file already on the server to 0644, which is not what I >> would >> > expect puppet to do. I would expect since it is already there, it >> would not >> > even care about the permissions. >> > >> > I know this is taking the UNIX filesystem permissions because I chmod'd >> the >> > file on the filesystem to 0777 and when running puppet on Windows, it >> took >> > the new permissions. >> > >> > This becomes problematic because I am using puppet environments with an >> SVN >> > checkout system. Every time I update svn checkouts, it defaults to >> 0644. >> > Does anyone know if this is expected behavior or ways around this? >> >> This is "expected" in that windows agents emulate current *nix agent >> behavior. With that said there are issues with the current behavior in >> general. Currently, *nix agents will attempt to apply the remote >> uid/gid to the local system, which may not be what you would expect. >> See >> http://projects.puppetlabs.**com/issues/5240<http://projects.puppetlabs.com/issues/5240>. >> >> > > > What I would expect on both Unix and Windows is that if the target file > already exists and the resource declaration does not specify a mode, then > the current mode will not be changed. It is not a managed property. The > same applies to uid/gid. This is distinguished from the case of issue > 5240, which is about the uid/gid to apply to a File resource if the target > file is initially absent. > > Is the Windows client indeed emulating the Unix one here? In other words, > are they *both* buggy, or is it just the Windows client? > > > John > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/b3WN5RZXVWwJ. > > 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-users?hl=en. > -- _____________________________________________________ This email and any files transmitted with it are confidential and intended solely for the addressee. If you received this email in error, please do not disclose the contents to anyone; kindly notify the sender by return email and delete this email and any attachments from your system. (c) 2011 Currensee Inc. is a member of the National Futures Association (NFA) Member ID 0403251 | Over the counter retail foreign currency (Forex) trading may involve significant risk of loss. It is not suitable for all investors and you should make sure you understand the risks involved before trading and seek independent advice if necessary. Performance, strategies and charts shown are not necessarily predictive of any particular result and past performance is no indication of future results. Investor returns may vary from Trade Leader returns based on slippage, fees, broker spreads, volatility or other market conditions. Currensee Inc | 54 Canal St 4th Floor | Boston, MA 02114 | +1.617.624.3824 -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
