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.

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

-- 
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.

Reply via email to