I see. That is very interesting to know, it was causing me much stress as to where the permissions were coming from originally. I appreciate the help again Josh!
On Wednesday, January 16, 2013 4:35:46 PM UTC-5, Josh Cooper wrote: > > Hi Alex, > > On Wed, Jan 16, 2013 at 12:49 PM, phundisk > <alex.f...@currensee.com<javascript:>> > 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. > > You could either set the executable bit on these files in svn[1] or > define a default mode for file resources[2]. I'd probably go with the > former. > > Josh > > [1] http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.propset.html > [2] http://docs.puppetlabs.com/guides/style_guide.html#resource-defaults > -- > Josh Cooper > Developer, Puppet Labs > -- _____________________________________________________ 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. © 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 view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/6I3LEHFoNTkJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.